From afb95a62a893b0840765a7679a08cfcc67e22732 Mon Sep 17 00:00:00 2001 From: visp-odoo Date: Fri, 20 Oct 2023 14:47:49 +0530 Subject: [PATCH] [FIX] web_editor: correct invalid link notification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit: Clicking on invalid link results in a blank and bizarre notification because we are accessing wrong parameter in wysiwyg.js. After this commit: After correcting parameters clicking on an invalid link triggers a notification displaying an invalid URL message. task-3563345 closes odoo/odoo#139301 Signed-off-by: Geelen Sébastien (sge) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 60eb73973b9..a7f022afab3 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -658,8 +658,8 @@ export class Wysiwyg extends Component { target: $target[0], wysiwyg: this, container, - notify: (params) => { - this.notification.add(params.message, { type: params.type }); + notify: (message, params) => { + this.notification.add(message, { type: params.type }); }, });; $target.data('popover-widget-initialized', this.linkPopover);