mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
Add check for nulls, they break
This commit is contained in:
parent
c6388f3d89
commit
ad3f10d1b0
@ -807,7 +807,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
|
||||
if(typeof _options[key] == 'object' && typeof _options[key].value != 'undefined' && _options[key].value != key)
|
||||
if(typeof _options[key] == 'object' && _options[key] != null && typeof _options[key].value != 'undefined' && _options[key].value != key)
|
||||
{
|
||||
// Use value, not key, so it goes into the right place
|
||||
this.optionValues[_options[key].value] = _options[key];
|
||||
|
Loading…
Reference in New Issue
Block a user