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

[#58337] use correct link attachment upload #17018

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

Kharonus
Copy link
Member

Ticket

OP#58337

What are you trying to accomplish?

  • if attachments are disabled in files tab, file upload inline in rich text editors should stil work as expected

What approach did you choose and why?

  • use addAttachment link as an upload target, if no direct upload is specified - before was attachments link, which is conditionally hidden

@Kharonus Kharonus requested a review from a team October 22, 2024 09:30
@Kharonus Kharonus self-assigned this Oct 22, 2024
@oliverguenther
Copy link
Member

oliverguenther commented Oct 22, 2024

For this kind of bug, it sounds like a good idea to add a spec to it. Could you please add one to make sure it's regression-safe? 🙏

- https://community.openproject.org/work_packages/58337
- use `addAttachment` link as an upload target, if no direct upload is
  specified - before was `attachments` link, which is conditionally
  hidden
- now the ckeditor instance of a custom text widget in a grid has access
  to the correct attachments link
@Kharonus Kharonus force-pushed the bug/58337-inserted-images-are-lost-when-the-show-attachments-in-the-work-packages-files-tab-is-off branch from 691f940 to 230263f Compare October 25, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants