Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_dhcpGroup.inc
index 47369286e9682fd73cdab0004d58d9dfe1f3e5ff..cbe987da8c538d95166ff7ea6b967d9084192aa9 100644 (file)
@@ -23,7 +23,7 @@ class dhcpGroup extends dhcpPlugin
   /* attribute list for save action */
   var $objectclasses= array('top', 'dhcpGroup', 'dhcpOptions');
 
-  function dhcpGroup($attrs)
+  function dhcpGroup(&$attrs)
   {
     /* Load statements / options */
     dhcpPlugin::dhcpPlugin($attrs);
@@ -38,6 +38,7 @@ class dhcpGroup extends dhcpPlugin
     $display= $smarty->fetch (get_template_path('dhcp_group.tpl', TRUE)).$this->network->execute();
 
     /* Merge arrays for advanced view */
+    $this->fix_options();
     foreach (array("options", "statements") as $type){
       $this->advanced->$type= $this->$type + $this->network->$type;
     }
@@ -78,10 +79,12 @@ class dhcpGroup extends dhcpPlugin
 
 
   /* Check values */
-  function check($cache)
+  function check()
   {
     $message= array();
 
+    $cache = $this->parent->dhcpObjectCache;
+
     /* All required fields are set? */
     if ($this->cn == ""){
       $message[]= _("Required field 'Name' is not filled.");