From 3d2e8a5a627f6a2918f12eb0dabf6dca299ddeef Mon Sep 17 00:00:00 2001 From: Monviech Date: Wed, 27 May 2026 17:02:48 +0200 Subject: [PATCH] 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 --- .../OPNsense/Firewall/Api/FilterController.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php b/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php index e06829a0b7..8dc17ca78c 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php @@ -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) {