Commit b5ae5584 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch...

Merge branch '5680-in-the-argonaut-dns-plugin-we-need-a-dropdow-for-the-zone-in-the-argonaut-slave-part' into '1.3-dev'

Resolve "in the argonaut dns plugin we need a dropdow for the zone in the argonaut slave part"

Closes #5680

See merge request !28
Showing with 17 additions and 2 deletions
+17 -2
......@@ -143,6 +143,21 @@ class argonautDNSConfig extends simpleService
)
);
}
}
?>
function __construct ($dn = NULL, $parent = NULL)
{
global $config;
$attributesInfo = $this->getAttributesInfo();
$zones = objects::ls('dnsZone', NULL, NULL, '', TRUE);
if (!empty($zones)) {
$attributes = $attributesInfo['slave']['attrs'][0]->attribute->attributes;
$attributes[0] = new SelectAttribute(
_('zone'), _('DNS zone this server should be declared as slave of'),
'Ldap2zoneSlaveZone', TRUE,
$zones
);
$attributesInfo['slave']['attrs'][0]->attribute->setAttributes($attributes);
}
parent::__construct($dn, $parent, $attributesInfo);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment