Tuesday, July 14, 2020
1 change · master
Resolved issues and error corrections
This update prevents the page editor from crashing when users drag and drop content on pages without a header. It makes the editing experience more reliable across websites and other editor contexts where a standard page header is not present.
Original PR description
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