diff options
Diffstat (limited to 'ishtar_common/static')
| -rw-r--r-- | ishtar_common/static/js/ishtar.js | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 936ce4f11..5812dfd40 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -655,7 +655,7 @@ function update_search_field(){              }              if (v == "") return;              var term = get_label_from_input(item_for_label); -            if(!term) return; +            if(!term || typeof term == "undefined") return;              if (query) query += " ";              query += term + '="' + v + '"';          } @@ -668,6 +668,8 @@ function update_search_field(){                      if(item_for_label.filter('optgroup').length){                          item_for_label = item_for_label.parent();                      } +                    var term = get_label_from_input(item_for_label); +                    if(!term || typeof term == "undefined") return;                      if (query) query += " ";                      query += get_label_from_input(item_for_label) + '="' +                          $(this).text() + '"'; | 
