Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 25, 2025

[FIX] website_payment: fix donation button preview on drag

Steps to reproduce:

  • Enter edit mode.
  • If not already installed, click the "Donation Button" in the snippet
    menu to install the "website_payment" app.
  • Start dragging the "Donation Button" without dropping it onto the page
    to display its preview.
  • Bug: Prefilled buttons are displayed in the preview when they
    shouldn't be.

This bug was introduced by commit 1, where the prefilled buttons were
added to the "s_donation" snippet template so that they would be visible
in the "s_donation" preview in the snippets dialog. Unfortunately, this
change also made them visible for the inner "Donation Button" snippet,
which shouldn't be the case.

Forward-Port-Of: #202926
Forward-Port-Of: #202829

Steps to reproduce:

- Enter edit mode.
- If not already installed, click the "Donation Button" in the snippet
menu to install the "website_payment" app.
- Start dragging the "Donation Button" without dropping it onto the page
to display its preview.
- Bug: Prefilled buttons are displayed in the preview when they
shouldn't be.

This bug was introduced by commit [1], where the prefilled buttons were
added to the "s_donation" snippet template so that they would be visible
in the "s_donation" preview in the snippets dialog. Unfortunately, this
change also made them visible for the inner "Donation Button" snippet,
which shouldn't be the case.

[1]: odoo@edf81c1

X-original-commit: e3d1132
@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 25, 2025
@robodoo
Copy link
Contributor

robodoo commented Mar 25, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 25, 2025

This PR targets saas-18.2 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 RD research & development, internal work label Mar 25, 2025
@bvr-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Mar 25, 2025
Steps to reproduce:

- Enter edit mode.
- If not already installed, click the "Donation Button" in the snippet
menu to install the "website_payment" app.
- Start dragging the "Donation Button" without dropping it onto the page
to display its preview.
- Bug: Prefilled buttons are displayed in the preview when they
shouldn't be.

This bug was introduced by commit [1], where the prefilled buttons were
added to the "s_donation" snippet template so that they would be visible
in the "s_donation" preview in the snippets dialog. Unfortunately, this
change also made them visible for the inner "Donation Button" snippet,
which shouldn't be the case.

[1]: edf81c1

closes #203197

X-original-commit: e3d1132
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 25, 2025

@bvr-odoo @SergeBayet child PR #203198 was modified / updated and has become a normal PR. This PR (and any of its parents) will need to be merged independently as approvals won't cross.

@robodoo robodoo closed this Mar 25, 2025
@fw-bot fw-bot deleted the saas-18.2-18.0-fix-donation-button-preview-on-drag-bvr-424715-fw branch April 1, 2025 10:36
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 RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants