Commit bb3a297d authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy, firewall_virtual_ip_edit.php) apply issue on new vip

(cherry picked from commit 8d28488f)
parent ab2b0ded
......@@ -205,11 +205,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$toapplylist = array();
}
if (isset($id)) {
if (isset($toapplylist[$id])) {
$toapplylist[$id] = $a_vip[$id];
} else {
$toapplylist[] = $a_vip[$id];
}
// save existing content before changing it
$toapplylist[$id] = $a_vip[$id];
} else {
// new entry, no old data
$toapplylist[count($a_vip)] = array();
}
if (isset($id)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment