Skip to content

Commit

Permalink
Fix ActionFieldValue clone (apache#5991) (#65)
Browse files Browse the repository at this point in the history
* [private-bamoe-issues#2091] Fix ActionFieldValue clone

* Fix template test

* [private-bamoe-issues#2091] Fix ActionFieldValue clone

---------

Co-authored-by: Gabriele Cardosi <[email protected]>
Co-authored-by: Gabriele-Cardosi <[email protected]>
Co-authored-by: rikkola <[email protected]>
  • Loading branch information
4 people authored Jul 17, 2024
1 parent 2441199 commit 4d48a98
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(BaseSingleFieldConstraint.TYPE_LITERAL);
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 4d48a98

Please sign in to comment.