Code

Fixed usb hotplug storage
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Oct 2007 11:18:06 +0000 (11:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Oct 2007 11:18:06 +0000 (11:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7437 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_hotplugDialog.inc

index da5ad0891124c56185ff4f5e6dfa3a9d7e5963a8..2e69647fb518be0db11cd87fc10f598739a1e8c0 100644 (file)
@@ -15,7 +15,7 @@ class hotplugDialog extends plugin
 
   var $HOT_name                 = "";
   var $HOT_description          = "";
-  var $HOT_id                   = "";
+  var $HOT_id                   = "0x0000";
   var $HOT_produkt              = "";
   var $HOT_vendor               = "";
 
@@ -123,10 +123,8 @@ class hotplugDialog extends plugin
         $message[]=_("Invalid character in description. Please specify a valid description.");
       }
 
-      if((empty($this->HOT_vendor)) || (empty($this->HOT_produkt))){
-        if(empty($this->HOT_id) || preg_match("/[\|\*]/i",$this->HOT_id)){
-          $message[]=_("Please specify a valid iSerial.");
-        }
+      if(empty($this->HOT_id) || preg_match("/[\|\*]/i",$this->HOT_id)){
+        $message[]=_("Please specify a valid iSerial.");
       }
       if(empty($this->HOT_vendor) || !$this->is_2byteHex($this->HOT_vendor)){
         $message[]=_("Please specify a valid vendor ID. (2 byte hex like '0xFFFF')");