Skip to content

Commit 6816e4e

Browse files
committed
opt in
1 parent 78fe331 commit 6816e4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LDK/resources/web/LDK/plugin/UserEditableCombo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Ext4.define('LDK.plugin.UserEditableCombo', {
1212

1313
alias: 'plugin.ldk-usereditablecombo',
1414
allowChooseOther: true,
15+
useBracketsForUnknownValues: false,
1516

1617
init: function(combo) {
1718
this.combo = combo;
@@ -109,7 +110,7 @@ Ext4.define('LDK.plugin.UserEditableCombo', {
109110
return '';
110111
}
111112

112-
if (value.invalid) {
113+
if (this.field.userEditablePlugin.useBracketsForUnknownValues && value.invalid) {
113114
return '[' + LABKEY.Utils.encodeHtml(val) + ']';
114115
}
115116

0 commit comments

Comments
 (0)