Skip to content

Commit

Permalink
Fix ActionFieldValue clone (apache#5991)
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: rikkola <[email protected]>
  • Loading branch information
3 people authored and yesamer committed Jul 10, 2024
1 parent 23f8998 commit 84495a3
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 84495a3

Please sign in to comment.