mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fixed no new customfields could be created
This commit is contained in:
parent
dcad41f542
commit
e0a0708a64
@ -153,7 +153,9 @@ class egw_customfields implements IteratorAggregate
|
||||
*/
|
||||
public static function update(array $cf)
|
||||
{
|
||||
self::$db->update(self::TABLE, array(
|
||||
$op = $cf['id'] ? 'update' : 'insert';
|
||||
|
||||
self::$db->$op(self::TABLE, array(
|
||||
'cf_label' => $cf['label'],
|
||||
'cf_type' => $cf['type'],
|
||||
'cf_type2' => $cf['type2'] ? implode(',', $cf['type2']) : null,
|
||||
|
Loading…
Reference in New Issue
Block a user