Code

Prevent "reload errors" ,
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Mar 2006 05:09:33 +0000 (05:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Mar 2006 05:09:33 +0000 (05:09 +0000)
"showning own lock message caused by reloading edit post" ,
"prevent displaying broken objects "

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

plugins/admin/departments/class_departmentManagement.inc

index 89db9a1768caab0ff5cb34db36efbf598b452437..89178d11324662dc8394d6b34181e4333e1a5547 100644 (file)
@@ -152,7 +152,7 @@ class departmentManagement extends plugin
                /* Edit Entry if Posted action (s_action) == edit 
                 * The entry which will be edited is defined in $s_entry
                 */
-               if ($s_action=="edit"){
+               if (( $s_action=="edit") && (!isset($this->deptabs->config))){
                        $this->dn= $this->config->departments[trim($s_entry)];
 
                        if (($user= get_lock($this->dn)) != ""){
@@ -207,7 +207,7 @@ class departmentManagement extends plugin
                /* Edit Complete ...
                 * Finish request 
          */
-               if (isset($_POST['edit_finish'])){
+               if ((isset($_POST['edit_finish'])) && (isset($this->deptabs->config) ) ){
 
                        /* Check tabs, will feed message array */
                        $message= $this->deptabs->check();
@@ -252,7 +252,6 @@ class departmentManagement extends plugin
                        unset ($_SESSION['objectinfo']);
                }
 
-
                /* Headpage or normal plugin screen? */
                if ($this->deptabs == NULL){
                        /* Check sorting variable */