From e4d0a78c8dce0ba3e6b74e226429ea37d28be349 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 6 Jul 2011 15:09:08 +0000 Subject: [PATCH] Allow setting owner when creating a new category --- phpgwapi/inc/class.categories.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 7b487603d8..d783851e19 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -423,7 +423,7 @@ class categories } $this->db->insert(self::TABLE,array( 'cat_parent' => $values['parent'], - 'cat_owner' => $this->account_id, + 'cat_owner' => isset($values['owner']) ? $values['owner'] : $this->account_id, 'cat_access' => isset($values['access']) ? $values['access'] : 'public', 'cat_appname' => $this->app_name, 'cat_name' => $values['name'],