Code

Fixed error in department management.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 13:29:56 +0000 (13:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 13:29:56 +0000 (13:29 +0000)
-If a currenlty unsupported type of department was created -> php error.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11421 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 9700cef1097a8e536dc4c156be13ce710e565683..357331c49b387f5f2cd1dcd253d7e9a9f3173de3 100644 (file)
@@ -126,10 +126,10 @@ class departmentManagement extends plugin
         $tab = $objects[$s_entry]['TAB'];
         $acl = $objects[$s_entry]['ACL'];
         $this->deptabs= new deptabs($this->config,$this->config->data['TABS'][$tab], $this->dn,$acl);
+        $this->deptabs->set_acl_base($this->DivListDepartment->selectedBase);
       }else{
         trigger_error("Invalid / Not implemented countainer type.");
       }
-      $this->deptabs->set_acl_base($this->DivListDepartment->selectedBase);
     }