Code

Fixed some probs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 May 2006 05:54:33 +0000 (05:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 May 2006 05:54:33 +0000 (05:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3303 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentManagement.inc

index 2fcbe8fdee774148b1fc1edbfb430f4d00d2b09c..476008cffc6b38b60512dd271f39f1b2becbaf32 100644 (file)
@@ -212,7 +212,7 @@ class departmentManagement extends plugin
                        }
                }
 
-               if ((isset($_POST['edit_finish'])) && (isset($this->deptabs->config) ) ){
+               if ((isset($_POST['edit_finish'])) && (isset($this->deptabs->config))){
 
                        /* Check tabs, will feed message array */
                        $message= $this->deptabs->check();
@@ -241,22 +241,23 @@ class departmentManagement extends plugin
                }
 
                /* This department must be tagged */
-               if((isset($_GET['TagDepartment'])) && ($this->ObjectTaggingRequested)){
+    if(isset($_GET['TagDepartment'])){
                        $this->deptabs->by_object['department']->tag_objects();
-      $this->ObjectTaggingRequested = false;
-      exit();  
+      exit();  
                }
+
     /* initiate recursive remove*/
-               if((isset($_GET['PerformRecMove'])) &&($this->RecursiveRemoveRequested)){
+               if(isset($_GET['PerformRecMove'])){
                        $this->deptabs->by_object['department']->recursive_move("","",true);
-      $this->RecursiveRemoveRequested = false;
-      exit();
-               }
+                 exit();
+    }
 
     if($this->ObjectTaggingRequested){
+      $this->ObjectTaggingRequested = false;
       return($this->deptabs->by_object['department']->ShowTagFrame());
     }
     if($this->RecursiveRemoveRequested){
+      $this->RecursiveRemoveRequested = false;
       return($this->deptabs->by_object['department']->ShowMoveFrame());
     }