diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-18 23:20:03 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-18 23:20:03 +0545 |
commit | 49cb08d14485b939401b211e41a0203539347036 (patch) | |
tree | 8c6f2284aa36ed0345a18d9b5c87791781ab1533 /src | |
parent | 52ca65ee3dabf252399015bd6dfdd5b795cf1911 (diff) | |
download | pfsense-49cb08d14485b939401b211e41a0203539347036.zip pfsense-49cb08d14485b939401b211e41a0203539347036.tar.gz |
firewall_nat_1to1 fix save button text
There was no text appearing when hovering over the Save button, and Save did not actually save the changed rule order.
Make the code the same sort of stuff as in firewall_nat and it works.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/firewall_nat_1to1.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_nat_1to1.php b/src/usr/local/www/firewall_nat_1to1.php index 0683c92..f336433 100644 --- a/src/usr/local/www/firewall_nat_1to1.php +++ b/src/usr/local/www/firewall_nat_1to1.php @@ -75,7 +75,7 @@ if (!is_array($config['nat']['onetoone'])) { $a_1to1 = &$config['nat']['onetoone']; /* update rule order, POST[rule] is an array of ordered IDs */ -if ($_POST['order-store']) { +if (array_key_exists('order-store', $_POST)) { if (is_array($_POST['rule']) && !empty($_POST['rule'])) { $a_1to1_new = array(); @@ -273,7 +273,7 @@ display_top_tabs($tab_array); <i class="fa fa-trash icon-embed-btn"></i> <?=gettext("Delete"); ?> </button> - <button type="submit" id="order-store" name="order-store" class="btn btn-primary btn-sm" value="Save changes" disabled> + <button type="submit" id="order-store" name="order-store" class="btn btn-primary btn-sm" disabled title="<?=gettext('Save rule order')?>"> <i class="fa fa-save icon-embed-btn"></i> <?=gettext("Save")?> </button> |