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

Merged
merged 8 commits into from
Sep 21, 2024

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.

This PR fixes: #29238

@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
@erickgonzalez erickgonzalez added this pull request to the merge queue Sep 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 20, 2024
@erickgonzalez erickgonzalez added this pull request to the merge queue Sep 20, 2024
Merged via the queue into master with commit 1ca1832 Sep 21, 2024
32 checks passed
@erickgonzalez erickgonzalez deleted the issue-29238-Attaching-files-feature-on-tasks branch September 21, 2024 00:51
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
5 participants