Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_dhcpSubnet.inc
index ce1c4c164a75aa61abe17e8e3dbd5279472d3a03..8c2da41dea46fbbef28c1e17dcc55ca3c53c0443 100644 (file)
@@ -72,6 +72,7 @@ class dhcpSubnet extends dhcpPlugin
     $display= $smarty->fetch(get_template_path('dhcp_subnet.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;
     }
@@ -124,10 +125,12 @@ class dhcpSubnet 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 'Network address' is not filled.");