Skip to content

Commit

Permalink
Fixed bug in MODIFY bulk action preventing modification of more than …
Browse files Browse the repository at this point in the history
…one object.

(cherry picked from commit 11d9fd5)
  • Loading branch information
mederly committed Sep 20, 2016
1 parent 3d9b7f1 commit 7cb0bd4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -86,7 +86,7 @@ private ObjectDelta createDelta(ObjectType objectType, Data deltaData) throws Sc
if (deltaData.getData().size() != 1) {
throw new ScriptExecutionException("Expected exactly one delta to apply, found " + deltaData.getData().size() + " instead.");
}
ObjectDeltaType deltaType = ((PrismProperty<ObjectDeltaType>) deltaData.getData().get(0)).getAnyRealValue();
ObjectDeltaType deltaType = ((PrismProperty<ObjectDeltaType>) deltaData.getData().get(0)).getAnyRealValue().clone();
if (deltaType.getChangeType() == null) {
deltaType.setChangeType(ChangeTypeType.MODIFY);
}
Expand Down

0 comments on commit 7cb0bd4

Please sign in to comment.