Skip to content

Commit c2ab373

Browse files
committed
I'm just as confused as everybody else
1 parent d43dac5 commit c2ab373

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

html/gui/js/TGUserDropDown.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ CCR.xdmod.ui.TGUserDropDown = Ext.extend(Ext.form.ComboBox, {
2222
// person ID from whatever value is returned via the superclass.
2323

2424
var value = CCR.xdmod.ui.TGUserDropDown.superclass.getValue.call(this);
25-
26-
var person_id = value.split(';')[0];
25+
var person_id = value;
26+
if ((typeof value === 'string' || value instanceof String) && value.indexOf(';') !== -1) {
27+
person_id = value.split(';')[0];
28+
}
2729

2830
return person_id;
2931
},

0 commit comments

Comments
 (0)