Code

Do not allow to remove the ldap base:
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Oct 2009 16:39:49 +0000 (16:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Oct 2009 16:39:49 +0000 (16:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14681 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/class_departmentManagement.inc

index d419dd99db19aee3760b358305626cd4ff2f42aa..db86b5faa02f10b4e704f16d61029113d3de4100 100644 (file)
@@ -71,16 +71,20 @@ class departmentManagement extends management
   {
     $types= $this->get_support_departments();
     $type = $this->headpage->getType($target[0]);
-    management::editEntry($action,$target,$all,$this->tabClass,$types[$type]['TAB'],$this->aclCategory);
+    return(management::editEntry($action,$target,$all,$this->tabClass,$types[$type]['TAB'],$this->aclCategory));
   }
 
   
-
   function openEntry($action,$entry)
   {
     $this->headpage->setBase(array_pop($entry));
   }
 
+  protected function removeEntryRequested($action="",$target=array(),$all=array())
+  {
+    $target = array_remove_entries(array($this->config->current['BASE']),$target);
+    return(management::removeEntryRequested($action,$target,$all)); 
+  }
 
   static function filterDepLabel($row,$dn,$params,$ou,$pid,$base)
   {