From 2367b8747ee0cd1689019c597f97190f8a65879d Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:38:37 +0800 Subject: [PATCH] fix: There is a tool node in the application - the tool node has startup parameters - after importing, the tool should be disabled (#3831) --- apps/application/serializers/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/serializers/application.py b/apps/application/serializers/application.py index 4678995b7..f2ec52a0a 100644 --- a/apps/application/serializers/application.py +++ b/apps/application/serializers/application.py @@ -562,7 +562,7 @@ class ApplicationSerializer(serializers.Serializer): template_id=tool.get('template_id'), input_field_list=tool.get('input_field_list'), init_field_list=tool.get('init_field_list'), - is_active=tool.get('is_active') if len((tool.get('init_field_list') or [])) > 0 else False, + is_active=False if len((tool.get('init_field_list') or [])) > 0 else tool.get('is_active'), scope=ToolScope.WORKSPACE, folder_id=workspace_id, workspace_id=workspace_id)