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

Issue 29238 Attaching files feature on tasks is not properly working #29992

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gortiz-dotcms
Copy link
Contributor

@gortiz-dotcms gortiz-dotcms commented Sep 12, 2024

When attaching dot assets it was throwing an exception that the file wasn't a file asset, so I implemented a conversion from dotAsset to fileAsset, first made the convertToFileAsset function public and static to be accessible from outside its class and to reuse the logic of that function.
Then implemented the extra logic to convert the dotAsset to fileAsset in a new function transformDotAsset, where also a new property "fileLink" is added to then display it in the href of the jsp, this way the file can be accessible without problem when clicking on it.

@gortiz-dotcms gortiz-dotcms marked this pull request as ready for review September 13, 2024 17:31
@erickgonzalez erickgonzalez linked an issue Sep 18, 2024 that may be closed by this pull request
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.

Attaching files feature on tasks is not properly working
3 participants