Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: limit document title length in workflows (#9085)

shamoonfeb30f36df26
diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py
index 1c4d36694..5da9ef879 100644
--- a/src/documents/signals/handlers.py
+++ b/src/documents/signals/handlers.py
@@ -1178,6 +1178,8 @@ def run_workflows(
webhook_action()
if not use_overrides:
+ # limit title to 128 characters
+ document.title = document.title[:128]
# save first before setting tags
document.save()
document.tags.set(doc_tag_ids)