disabled control for task copies
This commit is contained in:
parent
367efdcfb3
commit
ec98ec5ef8
3
main.go
3
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue