mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
Make sure options are set before looking inside
This commit is contained in:
parent
2b7d47fcf7
commit
b6f16956f3
@ -259,7 +259,7 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
this.input.attr('multiple', true);
|
||||
this.input.attr('name', this.id + '[]');
|
||||
|
||||
if (this.input[0].options[0].value === '')
|
||||
if (this.input[0].options.length && this.input[0].options[0].value === '')
|
||||
{
|
||||
this.input[0].options[0] = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user