fix: Processing for document export sheet with more than 32 characters (#2740)

This commit is contained in:
shaohuzhang1 2025-03-31 11:17:25 +08:00 committed by GitHub
parent a07df46f9d
commit 7a99c78840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -703,6 +703,8 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
@staticmethod
def reset_document_name(document_name):
if document_name is not None:
document_name = document_name.strip()[0:29]
if document_name is None or not Utils.valid_sheet_name(document_name):
return "Sheet"
return document_name.strip()