Sfoglia il codice sorgente

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
version-14
Rushabh Mehta 7 anni fa
committed by GitHub
parent
commit
ad13ee5d94
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      frappe/public/js/frappe/ui/toolbar/search_utils.js

+ 2
- 0
frappe/public/js/frappe/ui/toolbar/search_utils.js Vedi 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;


Caricamento…
Annulla
Salva