mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
Fix: always check workflow filter_mailrule if set (#6474)
This commit is contained in:
parent
f4489ca2e7
commit
a5d3d51cc5
1 changed files with 1 additions and 2 deletions
|
|
@ -269,8 +269,7 @@ def consumable_document_matches_workflow(
|
||||||
|
|
||||||
# Document mail rule vs trigger mail rule
|
# Document mail rule vs trigger mail rule
|
||||||
if (
|
if (
|
||||||
document.mailrule_id is not None
|
trigger.filter_mailrule is not None
|
||||||
and trigger.filter_mailrule is not None
|
|
||||||
and document.mailrule_id != trigger.filter_mailrule.pk
|
and document.mailrule_id != trigger.filter_mailrule.pk
|
||||||
):
|
):
|
||||||
reason = (
|
reason = (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue