mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 13:22:06 +02:00
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…
x
Reference in New Issue
Block a user