Files
odoo_source/addons
Romain Derie bad0926ab1 [FIX] web_editor: don't run code when input is emptied
Before this commit:
  - Edit mode, open image dialog
  - Upload an image to the media dialog
  - Reclick on Upload but don't select an image, close the browser image
    selector
  - This will trigger the input change event, as the input was emptied

This is needed since in later commit, `_addData()` will do some code outside
of the `files` loop, which is useless if there is no files selected.
In thise case, the issue would be that it would open an empty toastr.

task-2345082
Coming from #65828
Closes #68326

closes odoo/odoo#68340

X-original-commit: 94c45412714c1263788b2567ce3c9581453b2cd4
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-03-25 12:35:11 +00:00
..
2020-10-19 07:03:01 +00:00
2021-02-26 08:21:08 +00:00
2021-03-19 16:03:16 +00:00
2021-03-18 14:43:23 +00:00
2021-03-24 08:21:34 +00:00
2021-03-24 12:48:32 +00:00
2021-03-23 17:06:37 +00:00
2021-03-15 16:11:26 +00:00