From 0b63285a25b8f230d5914bc341e8bae55e9ff09e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Jan 2010 10:33:39 +0000 Subject: [PATCH] Fixed button problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15361 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_printGeneric.inc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc index 9ad9f3b13..e296759f6 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc @@ -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']); -- 2.30.2