mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
show values now preservs the values which are arrays
This commit is contained in:
parent
28618888da
commit
19eef3f976
@ -624,7 +624,7 @@
|
||||
for ($r = 1; list($key,$val) = @each($cont); ++$r)
|
||||
{
|
||||
$vals["@$r"] = $key;
|
||||
$vals["A$r"] = $val;
|
||||
$vals["A$r"] = is_array($val) ? htmlspecialchars(serialize($val)).'#SeR#' : $val;
|
||||
}
|
||||
$show->data[$show->rows]['A']['name'] = 'etemplate.editor.values';
|
||||
$show->data[$show->rows]['A']['size'] = 'vals';
|
||||
@ -638,7 +638,8 @@
|
||||
|
||||
for ($r = 1; isset($vals["A$r"]); ++$r)
|
||||
{
|
||||
$content['cont'][$olds["@$r"]] = $vals["A$r"];
|
||||
$content['cont'][$olds["@$r"]] = substr($vals["A$r"],-5)=='#SeR#' ?
|
||||
unserialize(substr($vals["A$r"],0,-5)) : $vals["A$r"];
|
||||
}
|
||||
}
|
||||
$show->exec('etemplate.editor.show',$content,array(),'',array('olds' => $vals),'');
|
||||
|
Loading…
Reference in New Issue
Block a user