Skip to content

Commit 6f11e62

Browse files
committed
Bugfix to SimpleLabKeyCombo when setValue called with array of models
1 parent fb27e8a commit 6f11e62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

LDK/resources/web/LDK/field/SimpleLabKeyCombo.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ Ext4.define('LDK.form.field.SimpleLabKeyCombo', {
6969
}
7070
else if (Ext4.isArray(val)) {
7171
Ext4.Array.forEach(val, function(v, idx){
72-
v = field.convert(v);
73-
if (Ext4.isDefined(v)) {
74-
val[idx] = v;
72+
if (Ext4.isPrimitive(v)) {
73+
v = field.convert(v);
74+
if (Ext4.isDefined(v)) {
75+
val[idx] = v;
76+
}
7577
}
7678
}, this);
7779
}

0 commit comments

Comments
 (0)