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:
commit
ad13ee5d94
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue