mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Properly select the interfaces when displaying the edit page for floating rules that have multiple selected interfaces. Fixes #726
This commit is contained in:
parent
f85d812be0
commit
d030c9ded4
@ -644,9 +644,10 @@ include("head.inc");
|
||||
$interfaces["enc0"] = "IPsec";
|
||||
/* add openvpn/tun interfaces */
|
||||
if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"])
|
||||
$interfaces["openvpn"] = "OpenVPN";
|
||||
$interfaces["openvpn"] = "OpenVPN";
|
||||
$selected_interfaces = explode(",", $pconfig['interface']);
|
||||
foreach ($interfaces as $iface => $ifacename): ?>
|
||||
<option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && (strcasecmp($pconfig['interface'], $iface) == 0)) echo "selected"; ?>><?=gettext($ifacename);?></option>
|
||||
<option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && ( strcasecmp($pconfig['interface'], $iface) == 0 || in_array($iface, $selected_interfaces) )) echo "selected"; ?>><?=gettext($ifacename);?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user