diff options
| author | xO-Tx <mou@odoo.com> | 2020-09-21 13:36:26 +0000 |
|---|---|---|
| committer | xO-Tx <mou@odoo.com> | 2020-10-06 15:57:20 +0000 |
| commit | ecffbe4060eea98d3444f308bcd28bfb9287e1c3 (patch) | |
| tree | 6a751ad19321630832306f91de8e429b1e23d3f8 /addons/mail/static/src/models/thread_cache | |
| parent | 44055fd0f0de4f4a64635bd384c6004eb67c8374 (diff) | |
[FIX] web_editor: fix empty media dialog save issue
when media dialog launched for the first time (with no selected
media attachment), "FileWidget.selectedAttachments" contains a default
object {url:... , alt:...} (default attachment already on the target),
and the click on "Add" button will cause a backtrace since the code on
"_save" method tries to access "image_src" attribute on all selectedAttachments
elements including default one.
The simplest solution would be to check if the object already has
an "image_src" attribute.
task-2312878
closes odoo/odoo#58143
Signed-off-by: Samuel Degueldre <sdegueldre@users.noreply.github.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache')
0 files changed, 0 insertions, 0 deletions
