Skip to content

Commit

Permalink
Wrapped WHERE condition in parens in app/code/core/Mage/Rule/Model/Co…
Browse files Browse the repository at this point in the history
…ndition/Combine.php (#2965)
  • Loading branch information
mattdavenport authored and fballiano committed Jan 21, 2023
1 parent 8f9af9e commit ca87653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Rule/Model/Condition/Combine.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function prepareConditionSql()
$wheres = [];
foreach ($this->getConditions() as $condition) {
/** @var Mage_Rule_Model_Condition_Abstract $condition */
$wheres[] = $condition->prepareConditionSql();
$wheres[] = '(' . $condition->prepareConditionSql() . ')';
}

if (empty($wheres)) {
Expand Down

0 comments on commit ca87653

Please sign in to comment.