Skip to content

Commit 07c2e56

Browse files
ENGCOM-3231: Fixes #18357 - SQL error when table prefix used. #18412
- Merge Pull Request #18412 from pocallaghan/magento2:bugfix/18357 - Merged commits: 1. 2bee366
2 parents f710f9b + 2bee366 commit 07c2e56

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CheckoutAgreements/Model/ResourceModel/Agreement/Grid

1 file changed

+1
-1
lines changed

app/code/Magento/CheckoutAgreements/Model/ResourceModel/Agreement/Grid/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private function getStoresForAgreements()
6464

6565
if (!empty($agreementId)) {
6666
$select = $this->getConnection()->select()->from(
67-
['agreement_store' => 'checkout_agreement_store']
67+
['agreement_store' => $this->getResource()->getTable('checkout_agreement_store')]
6868
)->where(
6969
'agreement_store.agreement_id IN (?)',
7070
$agreementId

0 commit comments

Comments
 (0)