Procházet zdrojové kódy

fix: set lang to frappe.boot.lang by default

version-14
Sagar Vora před 4 roky
committed by Suraj Shetty
rodič
revize
050b8eaafa
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. +2
    -4
      frappe/public/js/frappe/views/communication.js

+ 2
- 4
frappe/public/js/frappe/views/communication.js Zobrazit soubor

@@ -387,10 +387,8 @@ frappe.views.CommunicationComposer = Class.extend({


//Load default print language from doctype //Load default print language from doctype
this.lang_code = doc.language this.lang_code = doc.language

if (!this.lang_code && this.get_print_format().default_print_language) {
this.lang_code = this.get_print_format().default_print_language;
}
|| this.get_print_format().default_print_language
|| frappe.boot.lang;


//On selection of language retrieve language code //On selection of language retrieve language code
const me = this; const me = this;


Načítá se…
Zrušit
Uložit