forked from extern/egroupware
reverted removing from delete call in add, as it does NOT take into account changed levels handled by delete
This commit is contained in:
parent
845d8f533c
commit
819ce52f90
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user