From 6483b5d68fa45e03ef9686066edf3d0641ebbd13 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Tue, 9 Jan 2024 08:25:07 +0800 Subject: [PATCH] MDL-80340 behat: make query to fetch h5p attempts less strict --- mod/h5pactivity/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/h5pactivity/lib.php b/mod/h5pactivity/lib.php index 91522009e4a..6c0b876c497 100644 --- a/mod/h5pactivity/lib.php +++ b/mod/h5pactivity/lib.php @@ -574,7 +574,7 @@ function h5pactivity_print_recent_activity($course, bool $viewfullnames, int $ti JOIN {course_modules} cm ON cm.instance = h5p.id JOIN {modules} md ON md.id = cm.module JOIN {user} u ON u.id = h5pa.userid - WHERE h5pa.timemodified > ? + WHERE h5pa.timemodified >= ? AND h5p.course = ? AND md.name = ? ORDER BY h5pa.timemodified ASC"; @@ -659,7 +659,7 @@ function h5pactivity_get_recent_mod_activity(array &$activities, int &$index, in JOIN {course_modules} cm ON cm.instance = h5p.id JOIN {modules} md ON md.id = cm.module JOIN {user} u ON u.id = h5pa.userid $groupjoin - WHERE h5pa.timemodified > :timestart + WHERE h5pa.timemodified >= :timestart AND h5p.id = :cminstance $userselect $groupselect AND cm.id = :cmid ORDER BY h5pa.timemodified ASC";