Skip to content

Commit

Permalink
merge: fixed handling of multivalue properties
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Mar 26, 2024
1 parent 6e73874 commit 73c8b6b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,10 @@ private void mergeMultiValuedItem(Item<?, ?> targetItem, Item<?, ?> sourceItem)
private PrismValue addIfNotThere(Item<?, ?> targetItem, PrismValue sourceValue) throws SchemaException {
//noinspection unchecked
Item<PrismValue, ?> target = (Item<PrismValue, ?>) targetItem;
if (target.contains(sourceValue, VALUE_COMPARISON_STRATEGY)) {
PrismValue existing = target.findValue(sourceValue, VALUE_COMPARISON_STRATEGY);
if (existing != null) {
LOGGER.trace(" (but target contains the corresponding value - not adding)");
return null;
return existing ;
}

PrismValue cloned = createMarkedClone(sourceValue);
Expand Down

0 comments on commit 73c8b6b

Please sign in to comment.