From 149a5b1e05d5516304193c4ebc8f8ef4448a9585 Mon Sep 17 00:00:00 2001 From: Stephen Bourget Date: Sun, 30 Oct 2016 16:01:20 -0400 Subject: [PATCH] MDL-55249 mod_feedback: Associate status with current activity The status screen in mod_feedback simply checks to see if there are any attempts in progress to return the user status. This check should be limited to only include instances of the current feedback activity not any feedback activity on the site. --- mod/feedback/show_nonrespondents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/feedback/show_nonrespondents.php b/mod/feedback/show_nonrespondents.php index 79844860ef0..8f45cca3ab4 100644 --- a/mod/feedback/show_nonrespondents.php +++ b/mod/feedback/show_nonrespondents.php @@ -233,7 +233,7 @@ if (!$students) { $profilelink = ''.fullname($user).''; $data = array ($OUTPUT->user_picture($user, array('courseid'=>$course->id)), $profilelink); - if ($DB->record_exists('feedback_completedtmp', array('userid'=>$user->id))) { + if ($DB->record_exists('feedback_completedtmp', array('userid' => $user->id, 'feedback' => $feedback->id))) { $data[] = get_string('started', 'feedback'); } else { $data[] = get_string('not_started', 'feedback');