[FIX] web_editor, mass_mailing: use new historyReset io/ resetHistory
344d82c renamed `resetHistory` into `historyReset` but failed to update
some calls to it and rename its equivalent in wysiwyg.js. This commit
corrects the discrepancy.
Part-of: odoo/odoo#75901
This commit is contained in:
@@ -527,7 +527,7 @@ var MassMailingFieldHtml = FieldHtml.extend({
|
||||
// Wait the next tick because some mutation have to be processed by
|
||||
// the Odoo editor before resetting the history.
|
||||
setTimeout(() => {
|
||||
this.wysiwyg.resetHistory();
|
||||
this.wysiwyg.historyReset();
|
||||
}, 0);
|
||||
});
|
||||
|
||||
|
||||
@@ -565,8 +565,8 @@ const Wysiwyg = Widget.extend({
|
||||
/**
|
||||
* Reset the history.
|
||||
*/
|
||||
resetHistory: function () {
|
||||
this.odooEditor.resetHistory();
|
||||
historyReset: function () {
|
||||
this.odooEditor.historyReset();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user