Skip to content

Commit c313da5

Browse files
committed
[FIX] use include instead of patch
1 parent 991782d commit c313da5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spp_base_common/static/src/legacy/js/views/list/list_controller_fix.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
import ListController from "web.ListController";
1414
import session from "web.session";
1515
import core from "web.core";
16-
import {patch} from "@web/core/utils/patch";
1716

1817
const _t = core._t;
1918

20-
patch(ListController.prototype, {
19+
// Use legacy .include() method for Backbone-style controllers
20+
ListController.include({
2121
/**
2222
* @override
2323
*/
24-
async _toggleArchiveState(archive) {
24+
_toggleArchiveState: async function (archive) {
2525
const resIds = await this.getSelectedIdsWithDomain();
2626
const notif = this.isDomainSelected;
2727
await this._archive(resIds, archive);
@@ -34,7 +34,7 @@ patch(ListController.prototype, {
3434
resIds.length, // Total selected
3535
total // Actually processed
3636
);
37-
this.displayNotification({ title: _t('OpenSPP Archive Fix'), message: msg, type: 'success' });
37+
this.displayNotification({ title: _t('OpenSPP Archive Fix'), message: msg });
3838
}
3939
},
4040
});

0 commit comments

Comments
 (0)