diff options
author | Phil Davis <phil@jankaritech.com> | 2017-05-21 09:00:47 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-21 09:00:47 +0545 |
commit | 474b275684950ab8215b449987d4cbece005f9ed (patch) | |
tree | fbdd4d1551ed978bf195ec95fbcabe41e773eb57 /src/usr | |
parent | 8ce9725941732f11822121cfb4b51d19ed064533 (diff) | |
download | pfsense-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')
-rw-r--r-- | src/usr/local/www/diag_dns.php | 2 |
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); |