mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
The front end doesn't need any fake category for the automatic rules anymore, since it's decided by priority group now in the response handler logic
This commit is contained in:
parent
07f90b72ba
commit
3d2e8a5a62
1 changed files with 2 additions and 9 deletions
|
|
@ -170,15 +170,8 @@ class FilterController extends FilterBaseController
|
|||
$record = array_merge($record, $rule_stats[$record['uuid']]);
|
||||
}
|
||||
|
||||
// Tag legacy rules as "Automatic generated rules" if they have an empty category
|
||||
if (!empty($record['is_automatic'])) {
|
||||
$label = gettext('Automatically generated rules');
|
||||
$record['categories'] = $label; // Grouping key for tree view
|
||||
$record['category_colors'] = [['name' => $label]]; // Category formatter metadata
|
||||
} else {
|
||||
/* frontend can format categories with colors */
|
||||
$record['category_colors'] = $this->getCategoryColors($r_categories);
|
||||
}
|
||||
/* frontend can format categories with colors */
|
||||
$record['category_colors'] = $this->getCategoryColors($r_categories);
|
||||
|
||||
/* frontend can format aliases with an alias icon */
|
||||
foreach (['source_net','source_port','destination_net','destination_port'] as $field) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue