Code

Fixed dialog handling in posix class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Apr 2010 13:20:15 +0000 (13:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Apr 2010 13:20:15 +0000 (13:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17629 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/class_posixAccount.inc

index 42500f17b3a373935bbcad88875d1f40ebba5039..132f09c34288c4aac78374b865ff0b4b95efc9f5 100644 (file)
@@ -251,6 +251,7 @@ class posixAccount extends plugin
       $this->view_logged = TRUE;
       new log("view","users/".get_class($this),$this->dn);
     }
+    $this->dialog = FALSE;
 
     if($this->multiple_support_active){
       $this->is_account = TRUE;
@@ -304,13 +305,11 @@ class posixAccount extends plugin
     // Display dialog to allow selection of groups
     if (isset($_POST['edit_groupmembership'])){
       $this->groupSelect = new groupSelect($this->config,get_userinfo());
-      $this->dialog= TRUE;
     }
 
     // Cancel group dialog
     if (isset($_POST['add_groups_cancel'])){
       $this->groupSelect= NULL;
-      $this->dialog= FALSE;
     }
 
     // Add groups selected in groupSelect dialog to ours.
@@ -321,7 +320,6 @@ class posixAccount extends plugin
         $this->is_modified= TRUE;
       }
       $this->groupSelect= NULL;
-      $this->dialog= FALSE;
     }
 
     // Remove groups from currently selected groups.
@@ -343,12 +341,12 @@ class posixAccount extends plugin
         return($trustModeDialog);
         
     }
-    $this->dialog = FALSE;
     $smarty->assign("trustModeDialog" , $trustModeDialog);
 
 
     /* Manage group add dialog */
     if ($this->groupSelect){
+      $this->dialog = TRUE;
 
       // Build up blocklist
       session::set('filterBlacklist', array('dn' => array_keys($this->groupMembership)));
@@ -363,7 +361,6 @@ class posixAccount extends plugin
         pathNavigator::registerPlugin("SSH keys");
         return $result;
       }
-      $this->dialog= false;
     }