diff options
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/services/searchboxexpanderservice.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/app/services/searchboxexpanderservice.js b/js/app/services/searchboxexpanderservice.js index e66804e2..972b26d1 100644 --- a/js/app/services/searchboxexpanderservice.js +++ b/js/app/services/searchboxexpanderservice.js @@ -51,7 +51,14 @@ function getSearchFieldArraySettings(){ var res = SettingsService.getSetting('searchbox_settings'); - searchfields = JSON.parse(res); + + if(res!== ""){ + searchfields = JSON.parse(res); + }else{ + searchfields=defaults; + } + + } function getSearchFieldArrayForFiltering(){ |