From ec53098d8befdf459fa4ff7da17cf9d908e2aee7 Mon Sep 17 00:00:00 2001 From: NicoDucou Date: Tue, 4 Jul 2023 11:05:57 +0200 Subject: [PATCH] Survey: fix per user report when survey in LP but not in all sessions missing 2 lines to remove from previous commit - refs BT#20584 --- main/survey/surveyUtil.class.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/main/survey/surveyUtil.class.php b/main/survey/surveyUtil.class.php index a41da8dae5..f83da1b889 100755 --- a/main/survey/surveyUtil.class.php +++ b/main/survey/surveyUtil.class.php @@ -646,10 +646,8 @@ class SurveyUtil 'l.iid = li.lpId' ) ->where('sa.cId = :cId') - ->andWhere('sa.sessionId = :sessionId') ->andWhere('sa.surveyId = :surveyId') ->setParameter('cId', $courseId) - ->setParameter('sessionId', $sessionId) ->setParameter('surveyId', $surveyId); if (api_get_configuration_value('show_surveys_base_in_sessions')) {