summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_dns.php
diff options
context:
space:
mode:
authorPhil Davis <phil@jankaritech.com>2017-05-21 09:00:47 +0545
committerGitHub <noreply@github.com>2017-05-21 09:00:47 +0545
commit474b275684950ab8215b449987d4cbece005f9ed (patch)
treefbdd4d1551ed978bf195ec95fbcabe41e773eb57 /src/usr/local/www/diag_dns.php
parent8ce9725941732f11822121cfb4b51d19ed064533 (diff)
downloadpfsense-474b275684950ab8215b449987d4cbece005f9ed.zip
pfsense-474b275684950ab8215b449987d4cbece005f9ed.tar.gz
Diag DNS fix update alias button text after add alias
1) Lookup a name with Diag DNS 2) Press "Add Alias" The alias is added, but the button still says "Add Alias". Actually the alias exists by now. The button should say "Update Alias". Fix: once we have emitted the alias create/update success message, we can set $alias_exists true so that the rest of the code is based on the (possibly new) state.
Diffstat (limited to 'src/usr/local/www/diag_dns.php')
-rw-r--r--src/usr/local/www/diag_dns.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php
index 74238f1..175b359 100644
--- a/src/usr/local/www/diag_dns.php
+++ b/src/usr/local/www/diag_dns.php
@@ -212,6 +212,8 @@ if ($createdalias) {
} else {
print_info_box(gettext("Alias was created successfully."), 'success');
}
+
+ $alias_exists = true;
}
$form = new Form(false);
OpenPOWER on IntegriCloud