Skip to content

Commit ca87653

Browse files
mattdavenportfballiano
authored andcommitted
Wrapped WHERE condition in parens in app/code/core/Mage/Rule/Model/Condition/Combine.php (#2965)
1 parent 8f9af9e commit ca87653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Rule/Model/Condition/Combine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function prepareConditionSql()
5252
$wheres = [];
5353
foreach ($this->getConditions() as $condition) {
5454
/** @var Mage_Rule_Model_Condition_Abstract $condition */
55-
$wheres[] = $condition->prepareConditionSql();
55+
$wheres[] = '(' . $condition->prepareConditionSql() . ')';
5656
}
5757

5858
if (empty($wheres)) {

0 commit comments

Comments
 (0)