From 560243aefa823eb1edeb45f0e24a6bb069c49096 Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Fri, 31 Mar 2023 05:19:53 +0000 Subject: [PATCH] [FIX] mail: prevent attachmentViewer crash when clicking a video In the last refactoring*, the click event handler from the old code was missed, calling an undefined function, which can cause a crash on some browsers. This commit fixes this issue and implements the expected behavior of preventing the propagation of the click to the parent handler that closes the attachmentViewer. \* https://github.com/odoo/odoo/pull/110188 closes odoo/odoo#117288 Signed-off-by: Stockbauer Matthieu (tsm) --- addons/mail/static/src/attachments/attachment_viewer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/attachments/attachment_viewer.xml b/addons/mail/static/src/attachments/attachment_viewer.xml index 715c01a9aab..708309c53ef 100644 --- a/addons/mail/static/src/attachments/attachment_viewer.xml +++ b/addons/mail/static/src/attachments/attachment_viewer.xml @@ -36,7 +36,7 @@