Skip to content
Snippets Groups Projects
Commit 160d8fe9 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

store object visits for each news item, fixes #746

parent e667553d
No related branches found
No related tags found
No related merge requests found
...@@ -511,6 +511,11 @@ class MyRealmModel ...@@ -511,6 +511,11 @@ class MyRealmModel
SELECT eval_id, :user_id, '-2', :timestamp, 0 SELECT eval_id, :user_id, '-2', :timestamp, 0
FROM eval_range FROM eval_range
WHERE range_id = :id WHERE range_id = :id
) UNION (
SELECT `news_id`, :user_id, `pluginid`, :timestamp, 0
FROM `news_range`
JOIN `plugins` ON (`pluginclassname` = 'CoreOverview')
WHERE `range_id` = :id
) )
ON DUPLICATE KEY UPDATE last_visitdate = IFNULL(visitdate, 0), visitdate = :timestamp"; ON DUPLICATE KEY UPDATE last_visitdate = IFNULL(visitdate, 0), visitdate = :timestamp";
$statement = DBManager::get()->prepare($query); $statement = DBManager::get()->prepare($query);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment