mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-05 17:42:18 +02:00
Customfields:
- fix saving of @filename style options got automatically converted to label=@value style
This commit is contained in:
parent
4ea0638267
commit
7c2b6a44f8
@ -318,11 +318,18 @@ class customfields
|
|||||||
if (!empty($content['cf_values']))
|
if (!empty($content['cf_values']))
|
||||||
{
|
{
|
||||||
$values = array();
|
$values = array();
|
||||||
foreach(explode("\n",$content['cf_values']) as $line)
|
if($content['cf_values'][0] === '@')
|
||||||
{
|
{
|
||||||
list($var,$value) = explode('=',trim($line),2);
|
$values['@'] = substr($content['cf_values'], $content['cf_values'][1] === '=' ? 2:1);
|
||||||
$var = trim($var);
|
}
|
||||||
$values[$var] = empty($value) ? $var : $value;
|
else
|
||||||
|
{
|
||||||
|
foreach(explode("\n",$content['cf_values']) as $line)
|
||||||
|
{
|
||||||
|
list($var,$value) = explode('=',trim($line),2);
|
||||||
|
$var = trim($var);
|
||||||
|
$values[$var] = empty($value) ? $var : $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$content['cf_values'] = $values;
|
$content['cf_values'] = $values;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user