Skip to content
Snippets Groups Projects
Commit 7571db57186c authored by oury.balde's avatar oury.balde
Browse files

fix(debug_manager_xbus): resolve "env._t is not a function" error in `openXbusMessage`

Issue:

An error occurred when `env._t` was invoked as a function within the `openXbusMessage` method:
TypeError: env._t is not a function at openXbusMessage (debug_manager_xbus.js:33).

Fix:

Replaced the usage of `env._t` with the imported `_t` utility from `@web/core/l10n/translation`.
parent f2702f91ee59
No related branches found
No related tags found
1 merge request!14fix(debug_manager_xbus): resolve "env._t is not a function" error in `openXbusMessage`
Pipeline #117163 failed
Changelog
=========
18.0.2.1.1
----------
* Fix(debug_manager_xbus): resolve "env._t is not a function" error in `openXbusMessage`.
18.0.2.1.0
----------
......
......@@ -22,7 +22,7 @@
"license": "AGPL-3",
"summary": "Xbus common elements",
"icon": "/xbus_common/static/description/icon.svg",
"version": "18.0.2.1.0",
"version": "18.0.2.1.1",
"category": "Technical",
"author": "XCG Consulting",
"website": "https://orbeet.io/",
......
......@@ -23,6 +23,7 @@
*/
import {registry} from "@web/core/registry";
import {_t} from "@web/core/l10n/translation";
const debugRegistry = registry.category("debug");
......@@ -33,7 +34,7 @@
}
return {
type: "item",
description: env._t("Open Xbus Messages"),
description: _t("Open Xbus Messages"),
callback: async () => {
const ids = await env.services.orm.search("xbus.message.link", [
["res_id", "=", resId],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment