Code

Added role config
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Sep 2006 07:22:48 +0000 (07:22 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Sep 2006 07:22:48 +0000 (07:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4636 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_hotplugDialog.inc
plugins/personal/environment/hotplugDialogNew.tpl

index dc61ecf84bc4c720ad3bf6f0ad275292466f6f7f..c0a7be3d5603d26b4ec075c50c9168aff622188e 100644 (file)
@@ -123,13 +123,13 @@ class hotplugDialog extends plugin
         $message[]=_("Invalid character in description. Please specify a valid description.");
       }
 
-      if(preg_match("/[\|]/i",$this->HOT_id)){
+      if(empty($this->HOT_id) || preg_match("/[\|]/i",$this->HOT_id)){
         $message[]=_("Please specify a valid id.");
       }
-      if(!$this->is_2byteHex($this->HOT_vendor)){
+      if(empty($this->HOT_vendor) || !$this->is_2byteHex($this->HOT_vendor)){
         $message[]=_("Please specify a valid vendor id. (2 byte hex like '0xFFFF')");
       }
-      if(!$this->is_2byteHex($this->HOT_produkt)){
+      if(empty($this->HOT_produkt) || !$this->is_2byteHex($this->HOT_produkt)){
         $message[]=_("Please specify a valid product id. (2 byte hex like '0xFFFF')");
       }
 
index 927395d01ad2a7d8ebd9a81bfaddcbac40dce0b6..8ae162286dcb2b25d272d94d93fcf476aec999ba 100644 (file)
@@ -25,7 +25,7 @@
    <td style="vertical-align:top">
        <table summary="">
                <tr>
-                       <td><LABEL for="HOT_id">{t}Serial number{/t}&nbsp;{t}(iSerial){/t}</LABEL>
+                       <td><LABEL for="HOT_id">{t}Serial number{/t}&nbsp;{t}(iSerial){/t}</LABEL>{$must}
                        </td>
                        <td>
                                <input type="text" value="{$HOT_id}" name="HOT_id" id="HOT_id">
                        <td colspan="2">&nbsp;</td>
                </tr>
                <tr>
-                       <td><LABEL for="HOT_vendor">{t}Vendor-ID{/t}&nbsp;{t}(idVendor){/t}</LABEL>
+                       <td><LABEL for="HOT_vendor">{t}Vendor-ID{/t}&nbsp;{t}(idVendor){/t}</LABEL>{$must}
                        </td>
                        <td>
                                <input type="text" value="{$HOT_vendor}" name="HOT_vendor" id="HOT_vendor">
                        </td>
                </tr>
                <tr>
-                       <td><LABEL for="HOT_produkt">{t}Product-ID{/t}&nbsp;{t}(idProduct){/t}</LABEL>
+                       <td><LABEL for="HOT_produkt">{t}Product-ID{/t}&nbsp;{t}(idProduct){/t}</LABEL>{$must}
                        </td>
                        <td>
                                <input type="text" value="{$HOT_produkt}" name="HOT_produkt" id="HOT_produkt">