Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use orginal filename to generate document tite rather than the … #942

Merged

Conversation

sergiomarrocoli
Copy link
Contributor

https://unep-wcmc.codebasehq.com/projects/cites-support-maintenance/tickets/206

the file uploader sanitizes the filename, this is used to set the document title, which then needs to be corrected

this PR uses the original_filename before it is sanitized to set the document.

Testing:
upload some files with brackets in the filename. the Document title should match the original filename
the filename will still be modified

@sergiomarrocoli sergiomarrocoli force-pushed the feat/206/save-document-titles-as-original-filenames branch from 315ce84 to 56b002c Compare September 14, 2023 12:57
@sergiomarrocoli sergiomarrocoli force-pushed the feat/206/save-document-titles-as-original-filenames branch from 56b002c to 43bf803 Compare September 14, 2023 12:58
Base automatically changed from fix/192/author-name-styling to develop October 6, 2023 14:34
@lucacug lucacug merged commit 1c31f5d into develop Oct 6, 2023
@lucacug lucacug deleted the feat/206/save-document-titles-as-original-filenames branch October 6, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants