Skip to content

[FW][FIX] website: fix tabs breaking when increasing number of columns - #42130

Closed
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-12.0-website-tabs-break-when-increasing-columns-sad-GKAb-fw
Closed

[FW][FIX] website: fix tabs breaking when increasing number of columns#42130
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-12.0-website-tabs-break-when-increasing-columns-sad-GKAb-fw

Conversation

@fw-bot

@fw-bot fw-bot commented Dec 18, 2019

Copy link
Copy Markdown
Contributor

Previously, increasing the number of columns on the tabs snippet would
cause the newly created tabs to toggle the original tabs instead of its
own, this was caused by an oversight where the onClone method was not
called on the newly created tab. This commit fixes that issue.

task-ID: 2070643

Forward-Port-Of: #42109
Forward-Port-Of: #41125

* web_editor

Previously, increasing the number of columns on the tabs snippet would
cause the newly created tabs to toggle the original tabs instead of its
own, this was caused by an oversight where the columns were clone
directly using jQuery, and the snippets' the onClone method was not
called on the newly created columns (here, tabs). This commit move the
responsibility to clone onto the SnippetsMenu so that it can create the
appropriate snippetEditor if needed and call its onClone method.

task-2070643

X-original-commit: 77ebadf
@fw-bot

fw-bot commented Dec 18, 2019

Copy link
Copy Markdown
Contributor Author

Ping @sdegueldre, @qsm-odoo
This PR targets master and is the last of the forward-port chain.

To merge the full chain, say

@fw-bot r+

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

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Dec 18, 2019
@C3POdoo C3POdoo added the RD research & development, internal work label Dec 18, 2019
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Dec 18, 2019
@qsm-odoo

Copy link
Copy Markdown
Contributor

@fw-bot r+

robodoo pushed a commit that referenced this pull request Dec 18, 2019
* web_editor

Previously, increasing the number of columns on the tabs snippet would
cause the newly created tabs to toggle the original tabs instead of its
own, this was caused by an oversight where the columns were clone
directly using jQuery, and the snippets' the onClone method was not
called on the newly created columns (here, tabs). This commit move the
responsibility to clone onto the SnippetsMenu so that it can create the
appropriate snippetEditor if needed and call its onClone method.

task-2070643

closes #42130

X-original-commit: 77ebadf
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
@robodoo robodoo closed this Dec 18, 2019
@robodoo
robodoo temporarily deployed to merge December 18, 2019 17:42 Inactive
@qsm-odoo
qsm-odoo deleted the master-12.0-website-tabs-break-when-increasing-columns-sad-GKAb-fw branch December 19, 2019 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI 🤖 Robodoo has seen passing statuses 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