Code

Fixed button problem
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jan 2010 10:33:39 +0000 (10:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jan 2010 10:33:39 +0000 (10:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15361 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc

index 9ad9f3b134520387b2a4e952daec3e27a3803533..e296759f613fdfc2f33251d92ef93fdd7dc5f5b0 100644 (file)
@@ -518,24 +518,22 @@ class printgeneric extends plugin
       }
     }
 
-    /* Abort user / group adding dialog */
-    if(isset($_POST['PrinterCancel'])){
-      unset($this->dialog);
-      $this->dialog= FALSE;
+    // Abort user / group adding dialog 
+    if(isset($_POST['userGroupSelect_cancel'])){
+      $this->dialog=FALSE;
+      $this->userSelect = NULL;
+      $this->adminUserSelect = NULL;
     }
 
-    /* Save selected users / groups */
+    // Save selected users / groups 
     if(isset($_POST['userGroupSelect_save'])){
-
       $users = array();
       if($this->userSelect instanceOf userGroupSelect){
         $users = $this->userSelect->save();
       }elseif($this->adminUserSelect instanceOf userGroupSelect){
         $users = $this->adminUserSelect->save();
       }
-      
       foreach($users as $user){
-
         print_a($user);
 #       foreach($data as $mem){
 #         $this->AddMember($new['type'], $mem['dn']);