Skip to content

Commit

Permalink
fix: empty search shows None (#19055) (#19056)
Browse files Browse the repository at this point in the history
[skip ci]

(cherry picked from commit 83f591e)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Nov 30, 2022
1 parent a2a9c20 commit 7cd4dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/templates/includes/navbar/navbar_search.html
Expand Up @@ -2,7 +2,7 @@
<li>
<form action='/search'>
<input name='q' class='form-control navbar-search' type='text'
value='{{ frappe.form_dict.q|e or ''}}'
value='{{ frappe.form_dict.q|e if frappe.form_dict.q else ''}}'
{% if not frappe.form_dict.q%}placeholder="{{ _("Search...") }}"{% endif %}>
</form>
</li>
Expand Down

0 comments on commit 7cd4dd4

Please sign in to comment.