From 621061fa6cfe0dc0fdf5f11358a6375f3e2e1bab Mon Sep 17 00:00:00 2001 From: Bert Jansen Date: Tue, 16 Nov 2021 15:15:17 +0100 Subject: [PATCH] Multi value lookup only persisted first lookup value #628 [jansenbe - Bert Jansen] --- src/sdk/CHANGELOG.md | 1 + .../Model/SharePoint/Core/Internal/FieldValueCollection.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdk/CHANGELOG.md b/src/sdk/CHANGELOG.md index d0272e52d4..544a36b69d 100644 --- a/src/sdk/CHANGELOG.md +++ b/src/sdk/CHANGELOG.md @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Throw more descriptive exceptions when a `PnPContext` is created using the `IPnPContextFactory` while authentication is not properly configured #623 [jansenbe - Bert Jansen] - Fix: Mixing multiple top level `QueryProperties` statements when one of them has child `QueryProperties` generated a wrong query #625 [jansenbe - Bert Jansen] - Added `IQueryable` where it still was missing + throw exception when not LINQ query is not possible #627 [jansenbe - Bert Jansen] +- Fix: multi value lookup only persisted first lookup value #628 [jansenbe - Bert Jansen] ## [1.4.0] diff --git a/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs b/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs index fa4621fde3..00c27c114f 100644 --- a/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs +++ b/src/sdk/PnP.Core/Model/SharePoint/Core/Internal/FieldValueCollection.cs @@ -113,7 +113,7 @@ internal object LookupMultiToValidateUpdateItemJson() foreach (var item in Values) { - sb.Append($"{(item as FieldLookupValue).ToValidateUpdateItemJson()};#"); + sb.Append($"{(item as FieldLookupValue).ToValidateUpdateItemJson()};#;#"); } return sb.ToString();