Commit 1059d410 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3816 Fixing DNS refresh button on systems main tab

parent e0f21936
......@@ -392,7 +392,6 @@ class networkSettings extends plugin
$only_once = TRUE;
if ($this->acl_is_writeable("dnsSetup")) {
foreach ($_POST as $name => $value) {
/* Check if we have to delete a record entry */
if ((preg_match("/RemoveRecord_/", $name)) && ($only_once)) {
......@@ -578,7 +577,14 @@ class networkSettings extends plugin
$this->dnsEntry[$attr] = get_post($attr);
}
}
if (isset($_POST['reloadThisDNSStuff'])) {
$reloadThisDNSStuff = FALSE;
foreach ($_POST as $name => $value) {
if (preg_match('/^reloadThisDNSStuff/', $name)) {
$reloadThisDNSStuff = TRUE;
break;
}
}
if ($reloadThisDNSStuff) {
$o_queue = new supportDaemon();
if ($o_queue->is_error()) {
msg_dialog::display(_("Error"), sprintf(_("Was not able to contact argonaut server: %s"), "<br/><br/>".$o_queue->get_error()), ERROR_DIALOG);
......
......@@ -70,7 +70,6 @@
<td>
<input type='checkbox' name='dummy' id='dhcp_is_Account' class='center' disabled>
<label for="dhcp_is_Account">{t}Enable DHCP for this device{/t} ({t}not configured{/t})</label>
<input type='image' src='geticon.php?context=actions&icon=view-refresh&size=16' class='center'>
</td>
</tr>
{/if}
......@@ -166,7 +165,6 @@
{else}
<input type="checkbox" name="dummy" id="DNS_is_account" value="1" disabled class='center' {if $DNS_is_account} checked {/if}>
<label for="DNS_is_account">{t}Enable DNS for this device{/t} ({t}not configured{/t})</label>
<input type='image' src='geticon.php?context=actions&icon=view-refresh&size=16' class='center'>
{/if}
</td>
......
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