Merge pull request #16631 from surajshetty3416/fix-webform
This commit is contained in:
commit
dff622d38e
2 changed files with 2 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ frappe.boot = {
|
||||||
system: "{{ frappe.utils.get_time_zone() }}",
|
system: "{{ frappe.utils.get_time_zone() }}",
|
||||||
user: "{{ frappe.db.get_value('User', frappe.session.user, 'time_zone') or frappe.utils.get_time_zone() }}"
|
user: "{{ frappe.db.get_value('User', frappe.session.user, 'time_zone') or frappe.utils.get_time_zone() }}"
|
||||||
},
|
},
|
||||||
link_title_doctypes: `{{ frappe.call('frappe.boot.get_link_title_doctypes') }}`
|
link_title_doctypes: {{ link_title_doctypes }}
|
||||||
};
|
};
|
||||||
// for backward compatibility of some libs
|
// for backward compatibility of some libs
|
||||||
frappe.sys_defaults = frappe.boot.sysdefaults;
|
frappe.sys_defaults = frappe.boot.sysdefaults;
|
||||||
|
|
|
||||||
|
|
@ -198,6 +198,7 @@ def get_context(context):
|
||||||
|
|
||||||
context.show_in_grid = self.show_in_grid
|
context.show_in_grid = self.show_in_grid
|
||||||
self.load_translations(context)
|
self.load_translations(context)
|
||||||
|
context.link_title_doctypes = frappe.boot.get_link_title_doctypes()
|
||||||
|
|
||||||
def load_translations(self, context):
|
def load_translations(self, context):
|
||||||
translated_messages = frappe.translate.get_dict("doctype", self.doc_type)
|
translated_messages = frappe.translate.get_dict("doctype", self.doc_type)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue