disabled control for task copies #1

Merged
Dmitriy_Kravchenko merged 1 commits from FB_disable_copy_task_control into dev 2026-05-04 09:14:10 +03:00
1 changed files with 2 additions and 1 deletions

View File

@ -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 {