Skip to content

Commit e9a748d

Browse files
committed
MAGETWO-36857: Abandoned Carts report grid is not displayed
- fix table name resolving
1 parent 3365a03 commit e9a748d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Reports/Model/Resource/Quote/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function resolveCustomerNames()
119119
$customerName = $select->getAdapter()->getConcatSql(['cust_fname.value', 'cust_lname.value'], ' ');
120120

121121
$select->from(
122-
['customer' => 'customer_entity']
122+
['customer' => $this->customerResource->getTable('customer_entity')]
123123
)->columns(
124124
['customer_name' => $customerName]
125125
)->where(

app/code/Magento/Reports/Model/Resource/Quote/Item/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function addStoreFilter($storeIds)
155155
public function addCustomerData($filter = null)
156156
{
157157
$customersSelect = $this->customerResource->getReadConnection()->select();
158-
$customersSelect->from(['customer' => 'customer_entity'], 'entity_id');
158+
$customersSelect->from(['customer' => $this->customerResource->getTable('customer_entity')], 'entity_id');
159159
if (isset($filter['customer_name'])) {
160160
$customersSelect = $this->getCustomerNames($customersSelect);
161161
$customerName = $customersSelect->getAdapter()->getConcatSql(['cust_fname.value', 'cust_lname.value'], ' ');

0 commit comments

Comments
 (0)