Skip to content

Commit

Permalink
fixed type field saving while creating of a new focus object
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 5, 2016
1 parent cc89fb7 commit 2ec2b24
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -105,7 +105,12 @@ public static <O extends ObjectType> String getOperationUrlFromDelta(ObjectDelta
}

public static <O extends ObjectType> ObjectPolicyConfigurationType determineObjectPolicyConfiguration(PrismObject<O> object, SystemConfigurationType systemConfigurationType) throws ConfigurationException {
List<String> subTypes = determineSubTypes(object);
List<String> subTypes;
if (object.getOid() == null){
subTypes = new ArrayList<>();
} else {
subTypes = determineSubTypes(object);
}
return determineObjectPolicyConfiguration(object.getCompileTimeClass(), subTypes, systemConfigurationType);
}

Expand Down

0 comments on commit 2ec2b24

Please sign in to comment.