Merge pull request #16631 from surajshetty3416/fix-webform

This commit is contained in:
Suraj Shetty 2022-04-15 18:45:46 +05:30 committed by GitHub
commit dff622d38e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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)