Skip to content

Commit

Permalink
Little clarification.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Nov 7, 2017
1 parent d57c171 commit b19b285
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -53,6 +53,9 @@
newAssignment.setTargetRef(targetRef)
assignmentsToAdd.add(newAssignment.asPrismContainerValue())

// Suspicious code, see MID-4234. It is working here almost by chance.
// E.g. if executed for user jack, it would fail because of SchemaException.
// More correct is to replace FocusType.class with input.class here.
def delta = DeltaBuilder.deltaFor(FocusType.class, prismContext)
.item(FocusType.F_ASSIGNMENT).add(assignmentsToAdd)
.asObjectDelta(input.oid)
Expand Down

0 comments on commit b19b285

Please sign in to comment.