From 218f7b473b65b4098cd0b0deecf6207a163efdc9 Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Tue, 11 Jul 2023 16:51:16 +0200 Subject: [PATCH] fix(Query Report): no double translation (#21606) --- frappe/public/js/frappe/views/reports/query_report.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js index a7a86a981f74..789fb367ea90 100644 --- a/frappe/public/js/frappe/views/reports/query_report.js +++ b/frappe/public/js/frappe/views/reports/query_report.js @@ -1224,7 +1224,9 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { return Object.assign(column, { id: column.fieldname, - name: __(column.label, null, `Column of report '${this.report_name}'`), // context has to match context in get_messages_from_report in translate.py + // The column label should have already been translated in the + // backend. Translating it again would cause unexpected behaviour. + name: column.label, width: parseInt(column.width) || null, editable: false, compareValue: compareFn,