diff --git a/preferences/inc/class.bocategories.inc.php b/preferences/inc/class.bocategories.inc.php index c906df6d44..4d025b0087 100644 --- a/preferences/inc/class.bocategories.inc.php +++ b/preferences/inc/class.bocategories.inc.php @@ -106,9 +106,9 @@ return $this->cats->formated_list($format,$type,$cat_parent,$global_cats); } - function delete($cat_id,$subs) + function delete($cat_id,$drop_subs,$modify_subs=false) { - return $this->cats->delete($cat_id,$subs); + return $this->cats->delete($cat_id,$drop_subs,$modify_subs); } function check_values($values) diff --git a/preferences/inc/class.uicategories.inc.php b/preferences/inc/class.uicategories.inc.php index 42e6b7040e..f039dd12be 100644 --- a/preferences/inc/class.uicategories.inc.php +++ b/preferences/inc/class.uicategories.inc.php @@ -551,7 +551,7 @@ } else { - $this->bo->delete($cat_id,False); + $this->bo->delete($cat_id,False,True); } $GLOBALS['phpgw']->redirect_link('/index.php',$link_data); }