Needs review
Project:
Browsing History Recommender
Version:
7.x-2.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jan 2018 at 10:13 UTC
Updated:
13 Jan 2018 at 10:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alunyov commentedIssues is about value of default argument current_user for views context filter returns 0, but to get results from `history_rec_prediction` table we should use external uid from `history_rec_ext_users` table. I have added another default argument "User ID from logged in user or External UID for anonymous" which returns uid if user is logged in, and external uid from `history_rec_ext_users` table if user is anonymous. IMPORTANT: After applying the patch make sure value "User ID from logged in user or External UID for anonymous" for contextual filter "Recommender: Browsing History Recommender: user in preference table" is selected for both of views (or for any of views where this contextual filter was used).
Please see attached patch.