Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Dec 23, 2024

This commit adds the parameter sanitize_overridable=True to the description field of website_slides slides. It means that the description can now be properly edited as an user with enough rights.

The issue is that the slide.description field is sanitized after saving a slide/* page, which removes <button> elements. This is not easily testable in version 16.0 because no blocks contain <button> elements. However, starting from version 18.0, new blocks like the accordion block include buttons, and these are removed after saving a slide/* page when they are dropped into it.

opw-4273436

Forward-Port-Of: #190620

This commit adds the parameter "sanitize_overridable=True" to the
"description" field of "website_slides" slides. It means that the
description can now be properly edited as an user with enough rights.

The issue is that the "slide.description" field is sanitized after
saving a "slide/*" page, which removes "<button>" elements. This is
not easily testable in version 16.0 because no blocks contain "<button>"
elements. However, starting from version 18.0, new blocks like the
"accordion" block include buttons, and these are removed after saving a
"slide/*" page when they are dropped into it.

opw-4273436

X-original-commit: 0cd42f8
@robodoo
Copy link
Contributor

robodoo commented Dec 23, 2024

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Dec 23, 2024
@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 23, 2024

This PR targets saas-17.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Dec 23, 2024
robodoo pushed a commit that referenced this pull request Dec 27, 2024
This commit adds the parameter "sanitize_overridable=True" to the
"description" field of "website_slides" slides. It means that the
description can now be properly edited as an user with enough rights.

The issue is that the "slide.description" field is sanitized after
saving a "slide/*" page, which removes "<button>" elements. This is
not easily testable in version 16.0 because no blocks contain "<button>"
elements. However, starting from version 18.0, new blocks like the
"accordion" block include buttons, and these are removed after saving a
"slide/*" page when they are dropped into it.

opw-4273436

closes #191566

X-original-commit: 0cd42f8
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
@robodoo robodoo closed this Dec 27, 2024
@fw-bot fw-bot deleted the saas-17.4-16.0-fix-editing-slide-description-bvr-lwt0-fw branch January 10, 2025 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants