Skip to content

Commit

Permalink
Merge pull request #1594 from thostetler/fix-default-database-query
Browse files Browse the repository at this point in the history
Change = to : in default database query
  • Loading branch information
ehenneken authored Sep 17, 2018
2 parents 0aacf26 + 8933416 commit 5b86b93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/widgets/search_bar/search_bar_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@ function (
var fq_database_string = _.reduce(dbfilters, function (res, db, i) {
var d = db.toLowerCase();
return res.replace(/(\(.*)(\))/, i === 0 ?
'$1database=' + d + '$2' :
'$1 OR database=' + d + '$2'
'$1database:' + d + '$2' :
'$1 OR database:' + d + '$2'
);
}, '()');
apiQuery.set('fq_database', fq_database_string);
Expand All @@ -767,7 +767,7 @@ function (
// finally add the filters
if (!apiQuery.has('__filter_database_fq_database')) {
var fq_database_filters = _.map(dbfilters, function (db) {
return 'database=' + db.toLowerCase();
return 'database:' + db.toLowerCase();
});
apiQuery.set('__filter_database_fq_database', ['OR'].concat(fq_database_filters));
}
Expand Down

0 comments on commit 5b86b93

Please sign in to comment.