summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-18 22:18:07 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-18 22:18:07 +0545
commit1d44f99f358e8b19972dfbe252233e7b099e94be (patch)
treef447621e8118f9d0fda2f564527e71ee640e92f8
parentb9abac57ece83c4baeedfcd470dcab1084f98ae6 (diff)
downloadpfsense-1d44f99f358e8b19972dfbe252233e7b099e94be.zip
pfsense-1d44f99f358e8b19972dfbe252233e7b099e94be.tar.gz
Use current interface description for breadcrumb - RELENG_2_2
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.
-rw-r--r--usr/local/www/interfaces.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index baf59af..6a140b7 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -1503,7 +1503,7 @@ foreach ($mediaopts as $mediaopt){
}
}
-$pgtitle = array(gettext("Interfaces"), $pconfig['descr']);
+$pgtitle = array(gettext("Interfaces"), $wancfg['descr']);
$shortcut_section = "interfaces";
$closehead = false;
OpenPOWER on IntegriCloud