fix: Processing for document export sheet with more than 32 characters (#2740)
This commit is contained in:
parent
a07df46f9d
commit
7a99c78840
@ -703,6 +703,8 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def reset_document_name(document_name):
|
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):
|
if document_name is None or not Utils.valid_sheet_name(document_name):
|
||||||
return "Sheet"
|
return "Sheet"
|
||||||
return document_name.strip()
|
return document_name.strip()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user