reverted removing from delete call in add, as it does NOT take into account changed levels handled by delete

This commit is contained in:
Ralf Becker 2010-10-14 08:19:26 +00:00
parent 4e0e0a4050
commit 33fef9ce23

View File

@ -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);
}