mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-15 10:13:15 -05:00
Fix: always check workflow filter_mailrule if set (#6474)
This commit is contained in:
parent
f4489ca2e7
commit
a5d3d51cc5
@ -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…
x
Reference in New Issue
Block a user