Skip to content

Commit

Permalink
Update BindingModelExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
cgoconseils authored Jan 24, 2024
1 parent c9a6bab commit afad681
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/XrmFramework/Extensions/BindingModelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ private static IBindingModel GetDiff(this IBindingModel source, IBindingModel ta
valueSource = valueSource != null ? (DateTime?)new DateTime(((DateTime)valueSource).Ticks, DateTimeKind.Utc) : null;
}
break;
case AttributeTypeCode.Lookup:
if (attribute.Property.PropertyType == typeof(string) && string.Empty == valueSource as string)
{
valueSource = null;
}
break;
case AttributeTypeCode.String:
case AttributeTypeCode.Memo:
if (string.Empty == (valueSource as string))
Expand Down

0 comments on commit afad681

Please sign in to comment.