Code

Fixed dialog detection which hides save/apply/cancel buttons for users.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Sep 2007 11:36:15 +0000 (11:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Sep 2007 11:36:15 +0000 (11:36 +0000)
Removed debug output from dhcp plugins

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7401 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNSeditZoneEntries.inc
plugins/admin/users/class_userManagement.inc

index 1d8037a0702435b70e1e6fcf36f79439d5e60568..5f32b5cb71bf355fb8240ea7d808533e98da6907 100644 (file)
@@ -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);;
index 67cf4ee1332aa6087ac60ed58f410e458390e30c..fe1673cfa0de21b4d0a1e97b2a160a9b90beffad 100644 (file)
@@ -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.= "<p style=\"text-align:right\">\n";
           $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
           $display.= "&nbsp;\n";