disabled control for task copies

This commit is contained in:
Dmitriy_Kravchenko 2026-05-04 09:10:20 +03:00
parent 367efdcfb3
commit ec98ec5ef8
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 {