fix: empty search shows None (#19055)

[skip ci]
This commit is contained in:
Ankush Menat 2022-11-30 12:52:59 +05:30 committed by GitHub
parent 3fd5b3703b
commit 83f591e69b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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