[FIX] mass_mailing: fix toggleLinkTools

The lack of a default `options` parameter for `toggleLinkTools` led to a trace
when this method was called without parameters.
This method was introduced by [1].
This commit fixes it by adding an empty object as default parameter.

[1]: https://github.com/odoo/odoo/pull/106796/commits/862d93f9eef16ec45b0d27b246fae560f7feaf1e

task-3149496
opw-3149496
opw-3151829

closes odoo/odoo#111222

X-original-commit: 24293e2a3217d0b851a3ab1c083f2984efb31d60
Signed-off-by: Antoine Guenet (age) <age@odoo.com>
This commit is contained in:
Rodopho Cammarosano de Lima (rcdl)
2023-01-27 15:11:15 +01:00
parent 125a981465
commit 74cf214cd8
+1 -1
View File
@@ -21,7 +21,7 @@ const MassMailingWysiwyg = Wysiwyg.extend({
return res;
},
toggleLinkTools(options) {
toggleLinkTools(options = {}) {
this._super({
...options,
// Always open the dialog for the basic theme as it has no sidebar.