From: hickert Date: Tue, 25 Sep 2007 11:36:15 +0000 (+0000) Subject: Fixed dialog detection which hides save/apply/cancel buttons for users. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d1d4b35303b026abb1111f0179a9d8291e547628;p=gosa.git Fixed dialog detection which hides save/apply/cancel buttons for users. Removed debug output from dhcp plugins git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7401 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index 1d8037a07..5f32b5cb7 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -75,7 +75,6 @@ class servDNSeditZoneEntries extends plugin foreach($this->Devices as $key => $dev){ $table .= $this->generateRecordConfigurationRow($key); } - print_a($this->Devices); $smarty->assign("disableDialog",$this->disableDialog); $smarty->assign("table",$table);; diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 67cf4ee13..fe1673cfa 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -796,7 +796,13 @@ class userManagement extends plugin /* Don't show buttons if tab dialog requests this */ if(isset($this->usertab->by_object)){ - if (!$this->usertab->by_object[$this->usertab->current]->dialog){ + + $dia = FALSE; + if(isset($this->usertab->by_object[$this->usertab->current]->dialog)){ + $dia = $this->usertab->by_object[$this->usertab->current]->dialog; + } + + if(!is_object($dia) && $dia != TRUE){ $display.= "

\n"; $display.= "\n"; $display.= " \n";