mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
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
4e0e0a4050
commit
33fef9ce23
@ -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