mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix missing option check to work with options sent as an in-order array (label,value), fixes some custom fields not being properly set.
This commit is contained in:
parent
816c9c0a96
commit
05ea41493d
@ -490,7 +490,9 @@ var et2_selectbox = et2_inputWidget.extend(
|
|||||||
{
|
{
|
||||||
if(_value && jQuery("option[value='"+_value+"']", this.input).prop("selected", true).length == 0)
|
if(_value && jQuery("option[value='"+_value+"']", this.input).prop("selected", true).length == 0)
|
||||||
{
|
{
|
||||||
if(this.options.select_options[_value])
|
if(this.options.select_options[_value] ||
|
||||||
|
this.options.select_options.filter &&
|
||||||
|
this.options.select_options.filter(function(value) {return value == _value;}))
|
||||||
{
|
{
|
||||||
// Options not set yet? Do that now, which will try again.
|
// Options not set yet? Do that now, which will try again.
|
||||||
return this.set_select_options(this.options.select_options);
|
return this.set_select_options(this.options.select_options);
|
||||||
|
Loading…
Reference in New Issue
Block a user