forked from extern/egroupware
Handle possibility of a null option without failing
This commit is contained in:
parent
69ab474f8c
commit
b14424dbd1
@ -808,7 +808,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM],
|
||||
}
|
||||
}
|
||||
// Allow some special extras for objects by passing the whole thing - value might not be key
|
||||
var option_id = _options[key].value || _options[key].id || key;
|
||||
var option_id = _options[key] == null ? key : _options[key].value || _options[key].id || key;
|
||||
if(option_id != key) {
|
||||
egw.debug('log', 'Options not indexed. TODO: what is up?', this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user