Skip to content

Commit 60aab4e

Browse files
committed
Join values of methods field on client
1 parent 50ddd38 commit 60aab4e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

LDK/resources/web/LDK/field/SimpleCombo.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Ext4.define('LDK.form.field.SimpleCombo', {
1212
typeAhead: true,
1313
queryMode: 'local',
1414
triggerAction: 'all',
15+
joinReturnValue: false,
1516

1617
initComponent: function(){
1718
Ext4.apply(this, {
@@ -48,5 +49,18 @@ Ext4.define('LDK.form.field.SimpleCombo', {
4849
vals = Ext4.unique(vals);
4950

5051
return vals;
52+
},
53+
54+
getSubmitValue: function(){
55+
var val = this.callParent(arguments);
56+
if (!this.joinReturnValue) {
57+
return val;
58+
}
59+
60+
return val && val.length ? val.join(this.delimiter) : null;
61+
},
62+
63+
getToolParameterValue : function(){
64+
return this.getSubmitValue();
5165
}
5266
});

0 commit comments

Comments
 (0)