diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc
index 59295598ae3bc429f7b5e9f0017d82ab9b59851a..0448b3bde477c104852c65bfc142a2dcb5f575ea 100644 (file)
$this->base= dn2base($ui->dn);
}
} else {
- $this->base =preg_replace ("/^[^,]+,".get_ou('deviceou')."/","",$this->dn);
+ $this->base =preg_replace ("/^[^,]+,".get_ou('deviceRDN')."/","",$this->dn);
}
$this->orig_base = $this->base;
$this->orig_dn = $this->dn;
/* Skip serial check if vendor and product id are given */
if(preg_match("/^\s+$/i",$this->devID)){
$message[]= msgPool::invalid(_("iSerial"),"","01234");
+ }elseif(empty($this->devID) && $this->devID!="0"){
+ $message[]= msgPool::required(_("iSerial"));
}
if(empty($this->serial) || !$this->is_2byteHex($this->serial)){
$message[]= msgPool::invalid(_("Serial"),"","","0x1234");