mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 13:58:40 +01:00
Fix order of selectbox option detection so value is last choice
This commit is contained in:
parent
d2b9501208
commit
4d26a36d09
@ -214,11 +214,11 @@ var et2_selectbox = et2_inputWidget.extend(
|
|||||||
// content array.
|
// content array.
|
||||||
if (jQuery.isEmptyObject(_attrs["select_options"]))
|
if (jQuery.isEmptyObject(_attrs["select_options"]))
|
||||||
{
|
{
|
||||||
// Again, try last name part at top level
|
|
||||||
var content_options = this.getArrayMgr('content').getRoot().getEntry(name_parts[name_parts.length-1]);
|
|
||||||
// If that didn't work, check according to ID
|
// If that didn't work, check according to ID
|
||||||
_attrs["select_options"] = content_options ? content_options : this.getArrayMgr('content')
|
_attrs["select_options"] = content_options ? content_options : this.getArrayMgr('content')
|
||||||
.getEntry("options-" + this.id);
|
.getEntry("options-" + this.id);
|
||||||
|
// Again, try last name part at top level - this is usually just the value
|
||||||
|
var content_options = this.getArrayMgr('content').getRoot().getEntry(name_parts[name_parts.length-1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default to an empty object
|
// Default to an empty object
|
||||||
|
Loading…
Reference in New Issue
Block a user