mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 13:22:06 +02:00
Allow changing sel_options with array data, not just key => value pairs
This commit is contained in:
parent
4da2182c14
commit
1124c62200
@ -563,9 +563,16 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
|||||||
foreach($row as $name => &$options)
|
foreach($row as $name => &$options)
|
||||||
{
|
{
|
||||||
foreach($options as $key => &$label)
|
foreach($options as $key => &$label)
|
||||||
|
{
|
||||||
|
if(!is_array($label))
|
||||||
{
|
{
|
||||||
$label = html_entity_decode($label, ENT_NOQUOTES,'utf-8');
|
$label = html_entity_decode($label, ENT_NOQUOTES,'utf-8');
|
||||||
}
|
}
|
||||||
|
else if ($label['label'])
|
||||||
|
{
|
||||||
|
$label['label'] = html_entity_decode($label['label'], ENT_NOQUOTES,'utf-8');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$rows[$n] = $row;
|
$rows[$n] = $row;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user