Skip to content

Commit

Permalink
fix(Query Report): no double translation (frappe#21606)
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Jul 11, 2023
1 parent 3de0eb3 commit 218f7b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frappe/public/js/frappe/views/reports/query_report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 218f7b4

Please sign in to comment.