From 819ce52f90bcadcd957e6d95c6d014589a4a9d4b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 14 Oct 2010 08:18:41 +0000 Subject: [PATCH] reverted removing from delete call in add, as it does NOT take into account changed levels handled by delete --- phpgwapi/inc/class.categories.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 03bd1e3cc1..7d87af0fba 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -607,9 +607,7 @@ class categories { if (isset($values['old_parent']) && (int)$values['old_parent'] != (int)$values['parent']) { - // as far as add is implemented it is done as INSERT or UPDATE, so a delete should not be needed, - // since we loose the original cat_id, while doing so - //$this->delete($values['id'],False,True); + $this->delete($values['id'],False,True); return $this->add($values); }