FB_new_features_and_changes_task_control_system #2

Merged
Dmitriy_Kravchenko merged 3 commits from FB_new_features_and_changes_task_control_system into dev 2026-07-06 10:19:32 +03:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit b22284cf83 - Show all commits

View File

@ -119,13 +119,13 @@ func processNewTaskEvent(ctx context.Context, event *BitrixEvent, mandatoryAudit
}
func isTaskControlNeeded(taskName string) bool {
codeSubstrEnd := strings.Index(taskName, "#")
codeSubstrEnd := strings.IndexAny(taskName, "#*")
isCopy := strings.Index(taskName, "Копия ") == 0
return codeSubstrEnd != -1 && !isCopy
}
func isTaskControl(taskName string) bool {
codeSubstrEnd := strings.Index(taskName, "#")
codeSubstrEnd := strings.IndexAny(taskName, "#*")
codeSubstr := taskName[0:codeSubstrEnd]
return strings.Contains(codeSubstr, "В") || strings.Contains(codeSubstr, "П")
}