[FIX] web_editor: correct invalid link notification
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) <sge@odoo.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user