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) (backport #20338) (#20339)

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 14, 2023
1 parent 0563b6f commit 16de4ea
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 @@ -383,7 +383,7 @@ 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 || frappe.boot.lang;
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 16de4ea

Please sign in to comment.