mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix select options with ${row} were not always found
This commit is contained in:
parent
ad070b221c
commit
9c28235334
@ -815,20 +815,17 @@ jQuery.extend(et2_selectbox,
|
||||
|
||||
// Maybe in a row, and options got stuck in ${row} instead of top level
|
||||
// not sure this code is still needed, as server-side no longer creates ${row} or {$row} for select-options
|
||||
if(!content_options || content_options.length == 0)
|
||||
var row_stuck = ['${row}','{$row}'];
|
||||
for(var i = 0; i < row_stuck.length && (!content_options || content_options.length == 0); i++)
|
||||
{
|
||||
var row_stuck = ['${row}','{$row}'];
|
||||
for(var i = 0; i < row_stuck.length; i++)
|
||||
// perspectiveData.row in nm, data["${row}"] in an auto-repeat grid
|
||||
if(widget.getArrayMgr("sel_options").perspectiveData.row || widget.getArrayMgr("sel_options").data[row_stuck[i]])
|
||||
{
|
||||
// perspectiveData.row in nm, data["${row}"] in an auto-repeat grid
|
||||
if(widget.getArrayMgr("sel_options").perspectiveData.row || widget.getArrayMgr("sel_options").data[row_stuck[i]])
|
||||
var row_id = widget.id.replace(/[0-9]+/,row_stuck[i]);
|
||||
content_options = widget.getArrayMgr("sel_options").getEntry(row_id);
|
||||
if(!content_options || content_options.length == 0)
|
||||
{
|
||||
var row_id = widget.id.replace(/[0-9]+/,row_stuck[i]);
|
||||
content_options = widget.getArrayMgr("sel_options").getEntry(row_id);
|
||||
if(!content_options || content_options.length == 0)
|
||||
{
|
||||
content_options = widget.getArrayMgr("sel_options").getEntry(row_stuck[i] + '[' + widget.id + ']');
|
||||
}
|
||||
content_options = widget.getArrayMgr("sel_options").getEntry(row_stuck[i] + '[' + widget.id + ']');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user