summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authortimdufrane <tim.dufrane@gmail.com>2013-04-11 15:32:29 -0300
committertimdufrane <tim.dufrane@gmail.com>2013-04-11 15:32:29 -0300
commit9411d6abef235e186ac543b4cc9c21e61e0b5067 (patch)
tree2960a0b84d78e418c5553cb65387386e5741e643 /usr/local
parent03365efa9c8cad3844988e6e421619f6b3476bc3 (diff)
downloadpfsense-9411d6abef235e186ac543b4cc9c21e61e0b5067.zip
pfsense-9411d6abef235e186ac543b4cc9c21e61e0b5067.tar.gz
Fixed 802.1p duplicating values for vlanprio and vlanprioset
For real this time. Friggin' github.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 7acef74..77808e4 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -1323,13 +1323,25 @@ $i--): ?>
else
$opts .= "<option value=\"{$vprio}\" {$selected}>" . strtoupper($vprio) . "</option>\n";
}
+
+ $optsset = "";
+ foreach($vlanprio as $vprioset) {
+ if ($vprioset == $pconfig['vlanprioset'])
+ $selected = " selected=\"selected\"";
+ else
+ $selected = "";
+ if ($vprioset == "none")
+ $optsset .= "<option value=\"\">{$vprioset}</option>\n";
+ else
+ $optsset .= "<option value=\"{$vprioset}\" {$selected}>" . strtoupper($vprioset) . "</option>\n";
+ }
?>
<select name='vlanprio'>
<?php echo $opts; ?>
</select>
<p><?=gettext("Choose 802.1p priority to match on");?></p>
<select name='vlanprioset'>
- <?php echo $opts; ?>
+ <?php echo $optsset; ?>
</select>
<p><?=gettext("Choose 802.1p priority to apply");?></p>
</div>
OpenPOWER on IntegriCloud