Merge pull request #4096 from mbauskar/search

[minor] fixes for https://github.com/frappe/frappe/issues/3314, set emplty string to keywords if value is undefined
This commit is contained in:
Rushabh Mehta 2017-09-12 18:28:54 +05:30 committed by GitHub
commit ad13ee5d94

View file

@ -490,6 +490,8 @@ frappe.search.utils = {
// 0 - 6 for fuzzy contain
// **Specific use-case step**
keywords = keywords || '';
var item = __(_item || '').replace(/-/g, " ");
var ilen = item.length;