X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_componentGeneric.inc;h=c3edb7590b5cdf721309ef332222f92d32d55f80;hb=d77692031a0b3343cb7306f9bdd449208291eb17;hp=d6bbee442bed1f7090898329881c11c6e790182f;hpb=d7fd69b22dc6a6614c574f953e22fff953205209;p=gosa.git
diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc
index d6bbee442..c3edb7590 100644
--- a/plugins/admin/systems/class_componentGeneric.inc
+++ b/plugins/admin/systems/class_componentGeneric.inc
@@ -42,6 +42,9 @@ class componentGeneric extends plugin
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){
$display= "
".
@@ -60,6 +63,9 @@ class componentGeneric extends plugin
}
$smarty->assign("base_select", $this->base);
+ /* Show Asterisk for required attribute ipHostNumber and macAddress */
+ $smarty->assign("staticAddress", "*");
+
/* Show main page */
$smarty->assign("netconfig", dirname(__FILE__)."/network.tpl");
return($smarty->fetch (get_template_path('component.tpl', TRUE)));
@@ -102,12 +108,15 @@ class componentGeneric extends plugin
$message= array();
$this->dn= "cn=".$this->cn.",ou=netdevices,ou=systems,".$this->base;
- /* must: cn, macAddress */
+ /* must: cn, macAddress, ipHostNumber */
if ($this->cn == "" && chkacl ($this->acl, "cn") == ""){
- $message[]= "The required field 'Component name' is not set.";
+ $message[]= _("The required field 'Component name' is not set.");
+ }
+ if ($this->macAddress == "" && chkacl ($this->acl, "macAddress") == ""){
+ $message[]= _("The required field 'MAC-address' is not set.");
}
- if ($this->macAddress == "" && chkacl ($this->acl, "macAddresscn") == ""){
- $message[]= "The required field 'MAC-address' is not set.";
+ if ($this->ipHostNumber == "" && chkacl ($this->acl, "ipHostNumber") == ""){
+ $message[]= _("The required field 'IP-address' is not set.");
}
$ui= get_userinfo();