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(
69
69
*/
70
70
protected function _initSelect (): Collection
71
71
{
72
- $ this ->addFilterToMap ('customer_id ' , 'main_table.customer_id ' );
73
72
parent ::_initSelect ();
74
73
$ connection = $ this ->getConnection ();
75
74
$ lastDate = $ this ->date ->gmtTimestamp () - $ this ->visitorModel ->getOnlineInterval () * self ::SECONDS_IN_MINUTE ;
@@ -81,6 +80,7 @@ protected function _initSelect(): Collection
81
80
'main_table.last_visit_at >= ? ' ,
82
81
$ connection ->formatDate ($ lastDate )
83
82
);
83
+ $ this ->addFilterToMap ('customer_id ' , 'main_table.customer_id ' );
84
84
$ expression = $ connection ->getCheckSql (
85
85
'main_table.customer_id IS NOT NULL AND main_table.customer_id != 0 ' ,
86
86
$ connection ->quote (Visitor::VISITOR_TYPE_CUSTOMER ),
You can’t perform that action at this time.
0 commit comments