Fix: Do not throw error if not flags are allowed.

This commit is contained in:
Amritanshu 2014-05-28 16:47:03 +05:30
parent e8f4931d29
commit 2201a90278
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ overlord_service.factory('Tokenizer', ['$filter', function ($filter) {
}
if (key !== '' && value !== '' && key in comparator) {
matches.push(pushObject(comparator[key], value));
} else if (key !== '' && key in searchInfo.flags) {
} else if (key !== '' && !angular.isUndefined(searchInfo.flags) && key in searchInfo.flags) {
flags[key] = value;
}
}