diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-31 17:14:17 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-05-31 17:14:17 -0400 |
commit | cb45014a27f9619f6824bc0f0b94cd059996f492 (patch) | |
tree | e5af179e77e59671be8449dcde035feb31bd8458 | |
parent | 52cca3a46cf05e7952bf8967c838d164318201a1 (diff) | |
download | pfsense-cb45014a27f9619f6824bc0f0b94cd059996f492.zip pfsense-cb45014a27f9619f6824bc0f0b94cd059996f492.tar.gz |
Select lan interface correctly when editing
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 0683ef8..00dcbe0 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -192,12 +192,13 @@ include("head.inc"); <tr> <td width="22%" valign="top" class="vncellreq">Interface</td> <td width="78%" class="vtable"> - <select name="interface" class="formselect"> + <select name="interface" class="formselect"> <?php $interfaces = get_configured_interface_with_descr(false, true); foreach ($interfaces as $iface => $ifacename): ?> - <option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>> + <option value="<?=$iface;?>" <?php if (get_real_interface($iface) == $pconfig['interface']) echo " selected"; ?>> <?=htmlspecialchars($ifacename);?> </option> + iface = <?=$iface?> ; pconfig = <?=$pconfig['interface']?> ; ifacename = <?=$ifacename?> <?php endforeach; if (is_package_installed("openbgpd") == 1) { |