summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache
diff options
context:
space:
mode:
authorxO-Tx <mou@odoo.com>2020-09-21 13:36:26 +0000
committerxO-Tx <mou@odoo.com>2020-10-06 15:57:20 +0000
commitecffbe4060eea98d3444f308bcd28bfb9287e1c3 (patch)
tree6a751ad19321630832306f91de8e429b1e23d3f8 /addons/mail/static/src/models/thread_cache
parent44055fd0f0de4f4a64635bd384c6004eb67c8374 (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