mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Fix: limit document title length in workflows (#9085)
This commit is contained in:
parent
bbad36717f
commit
feb30f36df
@ -1178,6 +1178,8 @@ def run_workflows(
|
|||||||
webhook_action()
|
webhook_action()
|
||||||
|
|
||||||
if not use_overrides:
|
if not use_overrides:
|
||||||
|
# limit title to 128 characters
|
||||||
|
document.title = document.title[:128]
|
||||||
# save first before setting tags
|
# save first before setting tags
|
||||||
document.save()
|
document.save()
|
||||||
document.tags.set(doc_tag_ids)
|
document.tags.set(doc_tag_ids)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user