Skip to content

Commit

Permalink
fix(print): Language set in document should have higher precedence (b…
Browse files Browse the repository at this point in the history
…ackport #20336) (#20337)

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 14, 2023
1 parent da2fa57 commit 2a84075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/printing/page/print/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ frappe.ui.form.PrintView = class {
set_default_print_language() {
let print_format = this.get_print_format();
this.lang_code =
print_format.default_print_language ||
this.frm.doc.language ||
print_format.default_print_language ||
frappe.boot.lang;
this.language_sel.val(this.lang_code);
}
Expand Down

0 comments on commit 2a84075

Please sign in to comment.