Skip to content

Commit

Permalink
Merge pull request #6 from Rikkola/TEMPLATE
Browse files Browse the repository at this point in the history
Fix template test
  • Loading branch information
gitgabrio authored Jun 13, 2024
2 parents 4bb83cb + 6f4d5e3 commit 4fc1fc8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,14 @@ public void visitActionCallMethod(final ActionCallMethod action) {
final ActionFieldFunction afvClone = new ActionFieldFunction();
afvClone.setMethod(((ActionFieldFunction) fieldValue).getMethod());
afvClone.setField(fieldValue.getField());
afvClone.setNature(fieldValue.getNature());
afvClone.setType(fieldValue.getType());
String value = fieldValue.getValue();
String templateKeyValue = rowDataProvider.getTemplateKeyValue(value);
if (Objects.equals("", templateKeyValue)) {
afvClone.setNature(fieldValue.getNature());
afvClone.setValue(value);
} else {
afvClone.setNature(BaseSingleFieldConstraint.TYPE_LITERAL);
afvClone.setValue(templateKeyValue);
}

Expand Down

0 comments on commit 4fc1fc8

Please sign in to comment.