mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
Fix for display of multi-row read-only select-account widget
This commit is contained in:
parent
3980ba3692
commit
1ef649b869
@ -234,7 +234,8 @@ class select_widget
|
|||||||
if ($readonly)
|
if ($readonly)
|
||||||
{
|
{
|
||||||
$cell['no_lang'] = True;
|
$cell['no_lang'] = True;
|
||||||
foreach(is_array($value) ? $value : (strpos($value,',') !== false ? explode(',',$value) : array($value)) as $id)
|
if (!is_array($value) && strpos($value,',') !== false) $value = explode(',',$value);
|
||||||
|
foreach(is_array($value) ? $value : array($value) as $id)
|
||||||
{
|
{
|
||||||
$cell['sel_options'][$id] = !$id && !is_numeric($rows) ? lang($rows) :
|
$cell['sel_options'][$id] = !$id && !is_numeric($rows) ? lang($rows) :
|
||||||
$this->accountInfo($id,$acc,$type2,$type=='both');
|
$this->accountInfo($id,$acc,$type2,$type=='both');
|
||||||
|
Loading…
Reference in New Issue
Block a user