diff --git a/frappe/templates/includes/list/list.js b/frappe/templates/includes/list/list.js index 27abe7c393..5580c04f9e 100644 --- a/frappe/templates/includes/list/list.js +++ b/frappe/templates/includes/list/list.js @@ -6,7 +6,7 @@ frappe.ready(function() { var btn = $(this); var data = $.extend(frappe.utils.get_query_params(), { doctype: "{{ doctype }}", - txt: "{{ txt|e or '' }}", + txt: "{{ (txt or '')|e }}", limit_start: next_start, pathname: location.pathname, });