diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-18 22:20:13 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-18 22:20:13 +0545 |
commit | 7d5b2133856a2e4530b09689331f79ce938a24c3 (patch) | |
tree | 8a2459854b58754054e3b278cc625b8094a19a56 /src/usr/local | |
parent | f8bf3fe860c63b0a4f02093fe15e2874f8e52156 (diff) | |
download | pfsense-7d5b2133856a2e4530b09689331f79ce938a24c3.zip pfsense-7d5b2133856a2e4530b09689331f79ce938a24c3.tar.gz |
Use current interface description for breadcrumb
If you enter invalid stuff in the interface description - e.g. "123" - and press save, then you get a warning about it, but the breadcrumb changes to "Interfaces: 123" - the wrongly entered description (that was not applied).
If you enter a valid string for 'descr' then by this point $wancfg has the new value anyway and so the breadcrumb will change correctly if you make a valid entry in 'descr' and save.
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/interfaces.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index f25bbeb..3a7e85c 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -1640,7 +1640,7 @@ foreach ($mediaopts as $mediaopt) { } } -$pgtitle = array(gettext("Interfaces"), $pconfig['descr']); +$pgtitle = array(gettext("Interfaces"), $wancfg['descr']); $shortcut_section = "interfaces"; $types4 = array("none" => gettext("None"), "staticv4" => gettext("Static IPv4"), "dhcp" => gettext("DHCP"), "ppp" => gettext("PPP"), "pppoe" => gettext("PPPoE"), "pptp" => gettext("PPTP"), "l2tp" => gettext("L2TP")); |