Merge pull request 'disabled control for task copies' (#1) from FB_disable_copy_task_control into dev
Reviewed-on: https://72.56.235.246.nip.io/gitea/Dmitriy_Kravchenko/bitrix_service/pulls/1
This commit is contained in:
commit
9d1a337647
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