File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
app/code/Magento/Customer/Model/ResourceModel/Online/Grid Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ public function __construct(
6969 */
7070 protected function _initSelect (): Collection
7171 {
72- $ this ->addFilterToMap ('customer_id ' , 'main_table.customer_id ' );
7372 parent ::_initSelect ();
7473 $ connection = $ this ->getConnection ();
7574 $ lastDate = $ this ->date ->gmtTimestamp () - $ this ->visitorModel ->getOnlineInterval () * self ::SECONDS_IN_MINUTE ;
@@ -81,6 +80,7 @@ protected function _initSelect(): Collection
8180 'main_table.last_visit_at >= ? ' ,
8281 $ connection ->formatDate ($ lastDate )
8382 );
83+ $ this ->addFilterToMap ('customer_id ' , 'main_table.customer_id ' );
8484 $ expression = $ connection ->getCheckSql (
8585 'main_table.customer_id IS NOT NULL AND main_table.customer_id != 0 ' ,
8686 $ connection ->quote (Visitor::VISITOR_TYPE_CUSTOMER ),
You can’t perform that action at this time.
0 commit comments