Browse Source

Fixes #1850 search category results sometimes fails

pull/1890/head
jlukic 9 years ago
parent
commit
7d8fe9a4ff
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/modules/search.js

2
src/definitions/modules/search.js

@ -310,7 +310,7 @@ $.fn.search = function(parameters) {
$.each(results, function(index, category) { $.each(results, function(index, category) {
if($.isArray(category.results)) { if($.isArray(category.results)) {
result = module.search.object(value, category.results)[0]; result = module.search.object(value, category.results)[0];
if(result.length > 0) {
if(result && result.length > 0) {
return true; return true;
} }
} }

Loading…
Cancel
Save