Code

Fixed stupid IE Post for gosaDefaultPrinter...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jul 2005 07:39:24 +0000 (07:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jul 2005 07:39:24 +0000 (07:39 +0000)
IE Posts empty and disabled Select fields...

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

plugins/personal/posix/class_posixAccount.inc
plugins/personal/posix/generic.tpl

index 4cc45cba92d95699e5fdf64a2be8fef4ddbcc35c..bb684b90d0d1f39e2394b5480c8bbf31ea2a5e8a 100644 (file)
@@ -920,6 +920,10 @@ class posixAccount extends plugin
       }
     }
 
+    if(empty($this->gosaDefaultPrinter)){
+      $message[]= _("You need to specify a valid default printer.");
+    }
+
     return ($message);
   }
 
index 91300d7025325a641936fcdc8d1f5cdd3eda2917..7fa6c63e2370366add11520115e0d1265e74225f 100644 (file)
      <td>
       <select size="1" name="gosaDefaultPrinter" {$gosaDefaultPrinterACL}>
        {html_options options=$printerList selected=$gosaDefaultPrinter}
-               <option disabled>&nbsp;</option>
+               <option disabled value="">&nbsp;</option>
       </select> 
      </td>
     </tr>