diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc index 8ab4fba94417e06eab0b715371398a6fa4535b5c..aaa8764dc8ca149ab75b6022c40975c46e21133a 100644 --- a/plugins/admin/departments/class_departmentManagement.inc +++ b/plugins/admin/departments/class_departmentManagement.inc @@ -58,17 +58,17 @@ class departmentManagement extends management } // Overridden remove request method - Avoid removal of the ldap base. - protected function removeEntryRequested ($action, array $target, array $all) + public function removeRequested (array $action) { global $config; - $target = array_remove_entries([$config->current['BASE']], $target); - return parent::removeEntryRequested($action, $target, $all); + $action['targets'] = array_remove_entries([$config->current['BASE']], $action['targets']); + return parent::removeRequested($action); } // Finally remove departments and update department browsers - function removeEntryConfirmed ($action, array $target, array $all) + public function removeConfirmed (array $action) { - parent::removeEntryConfirmed($action, $target, $all); + parent::removeConfirmed($action); $this->refreshDeps(); }