index 47369286e9682fd73cdab0004d58d9dfe1f3e5ff..cbe987da8c538d95166ff7ea6b967d9084192aa9 100644 (file)
/* attribute list for save action */
var $objectclasses= array('top', 'dhcpGroup', 'dhcpOptions');
- function dhcpGroup($attrs)
+ function dhcpGroup(&$attrs)
{
/* Load statements / options */
dhcpPlugin::dhcpPlugin($attrs);
$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;
}
/* 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.");