Skip to content

Fix dynamic validation and title change for titled attachments#9175

Merged
ahukkanen merged 10 commits intodecidim:developfrom
mainio:fix/change_attachment_title
May 3, 2022
Merged

Fix dynamic validation and title change for titled attachments#9175
ahukkanen merged 10 commits intodecidim:developfrom
mainio:fix/change_attachment_title

Conversation

@lahdeero
Copy link
Copy Markdown
Contributor

@lahdeero lahdeero commented Apr 20, 2022

🎩 What? Why?

After #8681 it seemed that user could change title of an attachment, but it didn't really do much. Here we fix so user can change initial attachment title and can also change it later when editing resource.

Guidance changes:

  1. this commit changed file guidance, I changed it back and add separate guidance for favicon.
  2. Added extension allow list for titled attachments.

Also fixed dynamic validation for titled attachments.

📌 Related Issues

Testing

See #8998

📷 Screenshots

image

image

image

♥️ Thank you!

@lahdeero lahdeero changed the title Fix change title of an attachment Fix dynamic validation and title change for titled attachments Apr 21, 2022
Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and tested this works great!

Just one refactoring idea below.

@andreslucena andreslucena added module: core type: fix PRs that implement a fix for a bug labels May 2, 2022
@ahukkanen ahukkanen merged commit 697a2c4 into decidim:develop May 3, 2022
@ahukkanen ahukkanen deleted the fix/change_attachment_title branch May 3, 2022 17:10
@alecslupu alecslupu added this to the 0.27.0 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: core type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attachment title is not taken into account

4 participants