Skip to content

Commit

Permalink
extractMandatoryLogic() fix
Browse files Browse the repository at this point in the history
#607
(cherry picked from commit d1c0fb0)
  • Loading branch information
teosarca authored and metas-ts committed Sep 25, 2017
1 parent aa233cc commit 70f3c2d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,7 @@ private static boolean extractAlwaysUpdateable(final GridFieldVO gridFieldVO)

private static ILogicExpression extractMandatoryLogic(@NonNull final GridFieldVO gridFieldVO)
{
final ILogicExpression mandatoryLogic = gridFieldVO.getMandatoryLogic();

return mandatoryLogic.isNullExpression() ? ConstantLogicExpression.of(gridFieldVO.isMandatory()) : mandatoryLogic;
return gridFieldVO.isMandatoryLogicExpression() ? gridFieldVO.getMandatoryLogic() : ConstantLogicExpression.of(gridFieldVO.isMandatory());
}

private final void collectSpecialField(final DocumentFieldDescriptor.Builder field)
Expand Down

0 comments on commit 70f3c2d

Please sign in to comment.