Friday, June 5, 2020
2 changes · master
Resolved issues and error corrections
This fix prevents the website editor from getting stuck when an error happens during saving. Users can continue working instead of being locked out by a crash caused by incorrect error handling.
Original PR description
An error has been introduced by [1]. Indeed `response.data` does not exist, but `response.message.data` does. However, the whole `if` clause there seems now useless so this commit removes it. The whole file is being refactored anyway with the new editor. [1]: https://github.com/odoo/odoo/commit/ab4000fb3cf8fa54ba714ceceec391b78d73755e#diff-b1b550326b2d36a24e94e52c3901d1fbL513
The website editor now blocks users from pressing Save again while a save is already in progress. This helps avoid duplicate save attempts that could cause confusion or inconsistent website editing behavior.
Original PR description
While waiting for a better and more robust fix in the editor itself, this prevents to hit the save button of the website editor while a save is in progress.