chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

HotPotatoes exercise results are not displayed

Open josuemincho opened this issue 4 years ago • 1 comments

Describe When I want to see the student report in the hotpotatoes exercises, the data does not appear.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Course'
  2. Click on 'Exercises'
  3. Scroll down to 'Student'
  4. Click on 'Icon Report/Results'
  5. Don't show report

Expected behavior Show the results of the attempts made by the student in the hotpotatoes exercises

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Microsoft Edge

**Server

  • OS: Ubuntu Linux 16.04.7
  • Version of Chamilo: 1.11.14
  • Version of PHP: 7.2

Additional context But when exporting to csv, if they appear in the exported file

josuemincho avatar Feb 18 '21 05:02 josuemincho

I had the same problem with Chamilo 1.11.14 and 1.11.16.

Description The parameters for getting back the results are incorrect when calling function ExerciseLib::get_exam_results_hotpotatoes_data

Solution File: main/inc/ajax/model.ajax.php

Search for the following code:

    case 'get_hotpotatoes_exercise_results':
        $course = api_get_course_info();
        ........
        $result = ExerciseLib::get_exam_results_hotpotatoes_data(
            $start,
            $limit,
            $sidx,
            $sord,
            $hotpot_path,
            $whereCondition
        );
        break;

Remove the parameter $whereCondition:

        $result = ExerciseLib::get_exam_results_hotpotatoes_data(
            $start,
            $limit,
            $sidx,
            $sord,
            $hotpot_path
        );
        break;

forelo avatar Sep 24 '22 13:09 forelo

Hi @josuemincho and @forelo Thanks Forelo for the fix proposition. Could one of you two attach an hotpotatoes file example so that we could reproduce the problem and validate the fix ? You could also create an example of the problem on 11.chamilo.org so that we could have a look at it. Best regards

NicoDucou avatar Dec 07 '22 10:12 NicoDucou