From ec98ec5ef8733d5dcb744aefbbc3b137757425e0 Mon Sep 17 00:00:00 2001 From: Dmitriy_Kravchenko Date: Mon, 4 May 2026 09:10:20 +0300 Subject: [PATCH] disabled control for task copies --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d9cdfea..bf838e9 100644 --- a/main.go +++ b/main.go @@ -120,7 +120,8 @@ func processNewTaskEvent(ctx context.Context, event *BitrixEvent, mandatoryAudit func isTaskControlNeeded(taskName string) bool { codeSubstrEnd := strings.Index(taskName, "#") - return codeSubstrEnd != -1 + isCopy := strings.Index(taskName, "Копия ") == 0 + return codeSubstrEnd != -1 && !isCopy } func isTaskControl(taskName string) bool { -- 2.43.0