Navigation Menu

Skip to content

Commit

Permalink
Return default search field as null by default
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 14, 2012
1 parent 1ef9502 commit 7c752ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/database/domain.js
Expand Up @@ -182,6 +182,7 @@ Domain.prototype = {

get defaultSearchField() {
var fieldName = this.getConfiguration(this.defaultSearchFieldConfigurationKey);
if (!fieldName) return null;
var field = this.getIndexField(fieldName);
return field.exists() ? field : null ;
},
Expand Down

0 comments on commit 7c752ff

Please sign in to comment.