mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -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
|
||||
if (
|
||||
document.mailrule_id is not None
|
||||
and trigger.filter_mailrule is not None
|
||||
trigger.filter_mailrule is not None
|
||||
and document.mailrule_id != trigger.filter_mailrule.pk
|
||||
):
|
||||
reason = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user