Skip to content

Commit 147a9a1

Browse files
committed
ACP2E-155: [CLOUD] Site Down - php processes are getting OOMKilled cannot upsize largest Starter size
1 parent eea292a commit 147a9a1

File tree

1 file changed

+13
-0
lines changed
  • app/code/Magento/CatalogWidget/Model/Rule/Condition

1 file changed

+13
-0
lines changed

app/code/Magento/CatalogWidget/Model/Rule/Condition/Product.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,4 +281,17 @@ private function addAttributeToCollection($attribute, $collection): void
281281
$this->addNotGlobalAttribute($attribute, $collection);
282282
}
283283
}
284+
285+
/**
286+
* @inheritdoc
287+
*/
288+
public function getBindArgumentValue()
289+
{
290+
$value = parent::getBindArgumentValue();
291+
return is_array($value) && $this->getMappedSqlField() === 'e.entity_id'
292+
? new \Zend_Db_Expr(
293+
$this->_productResource->getConnection()->quoteInto('?', $value, \Zend_Db::INT_TYPE)
294+
)
295+
: $value;
296+
}
284297
}

0 commit comments

Comments
 (0)