summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorCharlie Marshall <charlie0440@gmail.com>2013-07-26 11:08:39 +0100
committerCharlie Marshall <charlie0440@gmail.com>2013-07-26 11:08:39 +0100
commitf95cfe52fddcb4cfce31256a304503c059ab9d04 (patch)
treedbb374ecc132f751301d2dae6ad8276e0b92d2e0 /usr
parentf0ac410894be23506e064c747178ae1cfc0a2e48 (diff)
downloadpfsense-f95cfe52fddcb4cfce31256a304503c059ab9d04.zip
pfsense-f95cfe52fddcb4cfce31256a304503c059ab9d04.tar.gz
fix drop down menu to correctly use selected and remember state
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/widgets/widgets/log.widget.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php
index 89998ce..1af792b 100644
--- a/usr/local/www/widgets/widgets/log.widget.php
+++ b/usr/local/www/widgets/widgets/log.widget.php
@@ -151,7 +151,7 @@ function format_log_line(row) {
<?php
$interfaces = get_configured_interface_with_descr();
foreach ($interfaces as $iface => $ifacename): ?>
- <option value="<?=$iface;?>" <?php if (!link_interface_to_bridge($iface) && $iface == $if) echo "selected"; ?>>
+ <option value="<?=$iface;?>" <?php if ($nentriesinterfaces == $iface) echo "selected='selected'";?>>
<?=htmlspecialchars($ifacename);?>
</option>
<?php endforeach; ?>
OpenPOWER on IntegriCloud