Re-order separators on adding a new rule at the top

This commit is contained in:
Stephen Beaver 2016-01-28 12:59:57 -05:00
parent a4eef0c7ca
commit add097d214

View File

@ -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;
}