summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85fcf14)
raw | patch | inline | side by side (parent: 85fcf14)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Sep 2006 07:22:48 +0000 (07:22 +0000) | ||
committer | cajus <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 | patch | blob | history | |
plugins/personal/environment/hotplugDialogNew.tpl | patch | blob | history |
diff --git a/plugins/personal/environment/class_hotplugDialog.inc b/plugins/personal/environment/class_hotplugDialog.inc
index dc61ecf84bc4c720ad3bf6f0ad275292466f6f7f..c0a7be3d5603d26b4ec075c50c9168aff622188e 100644 (file)
$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')");
}
diff --git a/plugins/personal/environment/hotplugDialogNew.tpl b/plugins/personal/environment/hotplugDialogNew.tpl
index 927395d01ad2a7d8ebd9a81bfaddcbac40dce0b6..8ae162286dcb2b25d272d94d93fcf476aec999ba 100644 (file)
<td style="vertical-align:top">
<table summary="">
<tr>
- <td><LABEL for="HOT_id">{t}Serial number{/t} {t}(iSerial){/t}</LABEL>
+ <td><LABEL for="HOT_id">{t}Serial number{/t} {t}(iSerial){/t}</LABEL>{$must}
</td>
<td>
<input type="text" value="{$HOT_id}" name="HOT_id" id="HOT_id">
<td colspan="2"> </td>
</tr>
<tr>
- <td><LABEL for="HOT_vendor">{t}Vendor-ID{/t} {t}(idVendor){/t}</LABEL>
+ <td><LABEL for="HOT_vendor">{t}Vendor-ID{/t} {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} {t}(idProduct){/t}</LABEL>
+ <td><LABEL for="HOT_produkt">{t}Product-ID{/t} {t}(idProduct){/t}</LABEL>{$must}
</td>
<td>
<input type="text" value="{$HOT_produkt}" name="HOT_produkt" id="HOT_produkt">