Skip to content
Snippets Groups Projects
Commit b9ad60d5 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] web_editor, web: fix traceback with drag & drop when no header

Commit [1] introduced the bug by relying on the fact an element with
id=top is in the edited DOM. As the website header can be disabled, this
induced a crash as soon as the header was indeed disabled. Also, the
editor is not meant to edit the website only so we cannot rely at all
on the presence of a #top element.

[1]: https://github.com/odoo/odoo/commit/6df67a28c2f113572acd4a3db19ab6b1bd37e7da



closes odoo/odoo#54409

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent b558cb79
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment