From da83e39c890dd4eb73caa48b67abb961dd1c8b67 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 24 May 2004 09:29:30 +0000 Subject: [PATCH] fixed creation of sub-cats, to automaticaly set the main-cat (as it already set the level) from the parent --- phpgwapi/inc/class.categories.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 28b7efbb5b..378c47e054 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -581,6 +581,7 @@ if ($values['parent'] > 0) { $values['level'] = $this->id2name($values['parent'],'level')+1; + $values['main'] = $this->id2name($values['parent'],'main'); } $values['descr'] = $this->db->db_addslashes($values['descr']);