Skip to content

Commit cb018dc

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-34922: Build stabilization and pull requests support
merge related fix
1 parent cbb0520 commit cb018dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,10 @@ public function addViewsCount($from = '', $to = '')
402402
['views' => 'COUNT(report_table_views.event_id)']
403403
)->join(
404404
['e' => $this->getProductEntityTableName()],
405-
'e.entity_id = report_table_views.object_id'
405+
$this->getConnection()->quoteInto(
406+
'e.entity_id = report_table_views.object_id AND e.attribute_set_id = ?',
407+
$this->getProductAttributeSetId()
408+
)
406409
)->where(
407410
'report_table_views.event_type_id = ?',
408411
$productViewEvent

0 commit comments

Comments
 (0)