Skip to content

Commit

Permalink
fixed combine overwrite exiting criterions.
Browse files Browse the repository at this point in the history
  • Loading branch information
hholzer committed Aug 17, 2012
1 parent 441f969 commit 740d8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lib/query/Criteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ public function combine($criterions = array(), $operator = self::LOGICAL_AND, $n
$firstCriterion->$operatorMethod($criterion);
}
if ($name === null) {
$this->add($firstCriterion, null, null);
$this->addAnd($firstCriterion, null, null);
} else {
$this->addCond($name, $firstCriterion, null, null);
}
Expand Down

0 comments on commit 740d8ff

Please sign in to comment.