Fix problem with addCondition() overwriting existing search conditions (thanks David)
This commit is contained in:
parent
3a1ffb6174
commit
0061a8d0df
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ Scholar.Search.prototype.addCondition = function(condition, operator, value){
|
|||
throw ("Invalid operator '" + operator + "' for condition " + condition);
|
||||
}
|
||||
|
||||
var searchConditionID = this._maxSearchConditionID++;
|
||||
var searchConditionID = ++this._maxSearchConditionID;
|
||||
|
||||
this._conditions[searchConditionID] = {
|
||||
id: searchConditionID,
|
||||
|
|
Loading…
Reference in a new issue