From ad6c5b6c4cb024ee4f1d3e0f8a77ba5caf1d5267 Mon Sep 17 00:00:00 2001 From: dispensable Date: Wed, 29 Nov 2023 13:56:05 +0800 Subject: [PATCH] Remove pack prefix of action name --- helpdesk/models/action_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/models/action_tree.py b/helpdesk/models/action_tree.py index 88405850..7fa6bd12 100644 --- a/helpdesk/models/action_tree.py +++ b/helpdesk/models/action_tree.py @@ -73,7 +73,7 @@ def resolve_pack(self, *config): report() for a in actions: - obj = '.'.join([a.get('pack'), a.get('name')]) + obj = a.get('name') desc = a.get('description') sub_actions.append([obj, desc, provider_type, a['id']]) return [name, sub_actions]