diff options
author | Ermal <eri@pfsense.org> | 2011-06-01 10:49:02 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-06-01 10:49:21 +0000 |
commit | 695a35aecdf3eefc4d529b57dabb1b5c0018e9c9 (patch) | |
tree | 4f524a1305dfe598c5f68f9ee0d78ca1f5db41b9 | |
parent | 6b421a0fb42a50d1e87ac63c64a5b8b8d2157577 (diff) | |
download | pfsense-695a35aecdf3eefc4d529b57dabb1b5c0018e9c9.zip pfsense-695a35aecdf3eefc4d529b57dabb1b5c0018e9c9.tar.gz |
Ticket #944. Also destory the previous interface if the user changing the vlan tag of an existing vlan entry.
-rwxr-xr-x | usr/local/www/interfaces_vlan_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php index 078fc3b..08f1a53 100755 --- a/usr/local/www/interfaces_vlan_edit.php +++ b/usr/local/www/interfaces_vlan_edit.php @@ -97,7 +97,7 @@ if ($_POST) { if (!$input_errors) { if (isset($id) && $a_vlans[$id]) { - if ($a_vlans[$id]['if'] != $_POST['if']) { + if (($a_vlans[$id]['if'] != $_POST['if']) || ($a_vlans[$id]['tag'] != $_POST['tag'])) { if (!empty($a_vlans[$id]['vlanif'])) // Destroy previous vlan pfSense_interface_destroy($a_vlans[$id]['vlanif']); |