mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Re-order separators on adding a new rule at the top
This commit is contained in:
parent
a4eef0c7ca
commit
add097d214
@ -911,6 +911,14 @@ if ($_POST) {
|
||||
$filterent['created'] = make_config_revision_entry();
|
||||
if (is_numeric($after)) {
|
||||
array_splice($a_filter, $after+1, 0, array($filterent));
|
||||
|
||||
// Update the separators
|
||||
$a_separators = &$config['filter']['separator'][$if];
|
||||
|
||||
for ($idx=0; isset($a_separators['sep' . $idx]); $idx++ ) {
|
||||
$seprow = substr($a_separators['sep' . $idx]['row']['0'], 2);
|
||||
$a_separators['sep' . $idx]['row']['0'] = 'fr' . ($seprow + 1);
|
||||
}
|
||||
} else {
|
||||
$a_filter[] = $filterent;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user