Solved! Go to Solution.
HI,
I find the issue and the solution
In /vendor/magento/module-checkout-agreements/Model/ResourceModel/Agreement/Grid/Collection.php
There is an issue:
private function getStoresForAgreements() { $agreementId = $this->getColumnValues('agreement_id'); if (!empty($agreementId)) { $select = $this->getConnection()->select()->from( ['agreement_store' => 'checkout_agreement_store'] )->where( 'agreement_store.agreement_id IN (?)', $agreementId ); return $this->getConnection()->fetchAll($select); } return []; }
Change with
private function getStoresForAgreements() { $agreementId = $this->getColumnValues('agreement_id'); if (!empty($agreementId)) { $select = $this->getConnection()->select()->from( [$this->getTable('agreement_store') => $this->getTable('checkout_agreement_store')] )->where( $this->getTable('agreement_store').'.agreement_id IN (?)', $agreementId ); return $this->getConnection()->fetchAll($select); } return []; }
HI,
I find the issue and the solution
In /vendor/magento/module-checkout-agreements/Model/ResourceModel/Agreement/Grid/Collection.php
There is an issue:
private function getStoresForAgreements() { $agreementId = $this->getColumnValues('agreement_id'); if (!empty($agreementId)) { $select = $this->getConnection()->select()->from( ['agreement_store' => 'checkout_agreement_store'] )->where( 'agreement_store.agreement_id IN (?)', $agreementId ); return $this->getConnection()->fetchAll($select); } return []; }
Change with
private function getStoresForAgreements() { $agreementId = $this->getColumnValues('agreement_id'); if (!empty($agreementId)) { $select = $this->getConnection()->select()->from( [$this->getTable('agreement_store') => $this->getTable('checkout_agreement_store')] )->where( $this->getTable('agreement_store').'.agreement_id IN (?)', $agreementId ); return $this->getConnection()->fetchAll($select); } return []; }