Skip to content

Commit 4bb83cb

Browse files
author
Gabriele-Cardosi
committed
[private-bamoe-issues#2091] Fix ActionFieldValue clone
1 parent 9318817 commit 4bb83cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drools-workbench-models/drools-workbench-models-guided-dtable/src/main/java/org/drools/workbench/models/guided/dtable/backend/util/GuidedDTBRDRLPersistence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public void visitActionCallMethod(final ActionCallMethod action) {
337337
final ActionFieldFunction afvClone = new ActionFieldFunction();
338338
afvClone.setMethod(((ActionFieldFunction) fieldValue).getMethod());
339339
afvClone.setField(fieldValue.getField());
340-
afvClone.setNature(BaseSingleFieldConstraint.TYPE_LITERAL);
340+
afvClone.setNature(fieldValue.getNature());
341341
afvClone.setType(fieldValue.getType());
342342
String value = fieldValue.getValue();
343343
String templateKeyValue = rowDataProvider.getTemplateKeyValue(value);

drools-workbench-models/drools-workbench-models-guided-dtable/src/test/java/org/drools/workbench/models/guided/dtable/backend/BRLRuleModelTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ public void testActionCallWithTemplateKeys() {
13841384
"when\n" +
13851385
" x : Context( )\n" +
13861386
"then\n" +
1387-
" x.add( \"test\" );\n" +
1387+
" x.add( @{test} );\n" +
13881388
"end\n";
13891389

13901390
assertEqualsIgnoreWhitespace(expected,

0 commit comments

Comments
 (0)