Fix #3209 editing unassigned VLAN tag can change an assigned interface - RELENG_2_2

Might as well fix this bug in 2.2.* as well, since it is easy and was obviously an error.
This commit is contained in:
Phil Davis 2016-02-09 07:35:46 +05:45
parent ec0643f7f1
commit ddba2645f9

View File

@ -116,7 +116,7 @@ if ($_POST) {
if (isset($id) && $a_vlans[$id]) {
if (($a_vlans[$id]['if'] != $_POST['if']) || ($a_vlans[$id]['tag'] != $_POST['tag'])) {
if (!empty($a_vlans[$id]['vlanif'])) {
$confif = convert_real_interface_to_friendly_interface_name($vlan['vlanif']);
$confif = convert_real_interface_to_friendly_interface_name($a_vlans[$id]['vlanif']);
// Destroy previous vlan
pfSense_interface_destroy($a_vlans[$id]['vlanif']);
} else {