From e0a0708a646411265911f9c282b9ef16927bcf3e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 26 Jun 2014 13:32:26 +0000 Subject: [PATCH] fixed no new customfields could be created --- phpgwapi/inc/class.egw_customfields.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_customfields.inc.php b/phpgwapi/inc/class.egw_customfields.inc.php index 18654fba07..f551fec137 100755 --- a/phpgwapi/inc/class.egw_customfields.inc.php +++ b/phpgwapi/inc/class.egw_customfields.inc.php @@ -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,