diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc
index 76acbdbf138d89d83110ed7e0fd80b07aeef6f3e..037963de6088bed57a04b39341881eeb0f984fd5 100644 (file)
public function execute()
{
+ plugin::execute();
$smarty = get_smarty();
- $smarty->assign("usePrototype", "true");
+
$smarty->assign("base", $this->baseSelector->render());
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
if(empty($this->vendor) || !$this->is_2byteHex($this->vendor)){
$message[]= msgPool::invalid(_("Vendor-ID"),"","","0x1234");
}
+
+ // Check if a wrong base was supplied
+ if(!$this->baseSelector->checkLastBaseUpdate()){
+ $message[]= msgPool::check_base();
+ }
/* Check if entry already exists */
if($this->cn != $this->orig_cn || $this->dn == "new"){
"plSection" => array("administration"),
"plCategory" => array("devices" => array("description" => _("Devices"),
"objectClass" => "gotoHotplugDevice")),
+ "plProperties" =>
+ array(
+ array(
+ "name" => "deviceRDN",
+ "type" => "rdn",
+ "default" => "ou=devices,",
+ "description" => "The 'deviceRDN' statement defines the location where new devices will be created. The default is 'ou=devices,'.",
+ "check" => "gosaProperty::isRdn",
+ "migrate" => "",
+ "group" => "plugin",
+ "mandatory" => FALSE)),
+
"plProvidedAcls"=> array(
"cn" => _("Name"),
"base" => _("Base"),