Clone rules are added after the original Rule

In the existing state the clone rules are added in the bottom of the firewall wall rule list. Generally the clone rules are for similar interface, port, etc and most of the time after adding they need to be arranged. The change enable the clone rule to be placed after the original rule. This will allow a better comparison and arrangement of the firewall rules.
This commit is contained in:
Maanas Royy
2016-07-26 06:45:47 +05:30
committed by GitHub
parent 3effb160b5
commit 48bfce7cb1

View File

@@ -19,6 +19,7 @@ if ($in{'clone'}) {
# Go back to the editing page
&redirect("edit_rule.cgi?new=1&clone=$in{'idx'}&".
"table=".&urlize($in{'table'})."&".
"after=$in{'idx'}&".
"chain=".&urlize($rule->{'chain'}));
}