summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-07-21 22:23:56 -0700
committerPhil Davis <phil.davis@world.inf.org>2013-07-21 22:23:56 -0700
commit458186467da955bbbe022d01ba49b9e3f4a49ecc (patch)
treee621229516043f1b59a6819220d66c4018fff1fa
parent3dd6ed1ac110b3741c74a8845f30cc33379941a5 (diff)
downloadpfsense-458186467da955bbbe022d01ba49b9e3f4a49ecc.zip
pfsense-458186467da955bbbe022d01ba49b9e3f4a49ecc.tar.gz
When adding Port or URL alias default the alias type (2.1 version)
When viewing the Port or URL aliases tab, and pressing "+" (add), make the default alias type match the Port or URL tab from which the user pressed "+". This is a version for the 2.1 branch.
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index dd579f0..49379fd 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -3,7 +3,7 @@
/*
firewall_aliases_edit.php
Copyright (C) 2004 Scott Ullrich
- Copyright (C) 2009 Ermal Luçi
+ Copyright (C) 2009 Ermal Luçi
Copyright (C) 2010 Jim Pingle
All rights reserved.
@@ -641,9 +641,9 @@ if (empty($tab)) {
<select name="type" class="formselect" id="type" onchange="update_box_type(); typesel_change();">
<option value="host" <?php if ($pconfig['type'] == "host") echo "selected=\"selected\""; ?>><?=gettext("Host(s)"); ?></option>
<option value="network" <?php if ($pconfig['type'] == "network") echo "selected=\"selected\""; ?>><?=gettext("Network(s)"); ?></option>
- <option value="port" <?php if ($pconfig['type'] == "port") echo "selected=\"selected\""; ?>><?=gettext("Port(s)"); ?></option>
+ <option value="port" <?php if (($pconfig['type'] == "port") || (empty($pconfig['type']) && ($tab == "port"))) echo "selected=\"selected\""; ?>><?=gettext("Port(s)"); ?></option>
<!--<option value="openvpn" <?php if ($pconfig['type'] == "openvpn") echo "selected=\"selected\""; ?>><?=gettext("OpenVPN Users"); ?></option> -->
- <option value="url" <?php if ($pconfig['type'] == "url") echo "selected=\"selected\""; ?>><?=gettext("URL");?></option>
+ <option value="url" <?php if (($pconfig['type'] == "url") || (empty($pconfig['type']) && ($tab == "url"))) echo "selected=\"selected\""; ?>><?=gettext("URL");?></option>
<option value="urltable" <?php if ($pconfig['type'] == "urltable") echo "selected=\"selected\""; ?>><?=gettext("URL Table"); ?></option>
</select>
</td>
OpenPOWER on IntegriCloud