[Fix] Desktop icon page not showing for french language (#4518)

This commit is contained in:
rohitwaghchaure 2017-11-21 15:57:49 +05:30 committed by Rushabh Mehta
parent 84aa0a6b33
commit 922b1237e7
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@
<label>
<input type="checkbox" data-module="{{ icon.module_name }}" class="module-select"
{% if not (icon.hidden if user else icon.blocked) %}checked{% endif %}>
{{ _(icon.label or icon.module_name) }}
{{ frappe.db.escape(_(icon.label or icon.module_name)) }}
</label>
</div>
</div>

View file

@ -153,6 +153,7 @@ def get_allowed_functions_for_jenv():
out['frappe']["db"] = {
"get_value": frappe.db.get_value,
"get_default": frappe.db.get_default,
"escape": frappe.db.escape,
}
return out