chamilo-lms
chamilo-lms copied to clipboard
HotPotatoes exercise results are not displayed
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:
- Go to 'Course'
- Click on 'Exercises'
- Scroll down to 'Student'
- Click on 'Icon Report/Results'
- Don't show report
Expected behavior Show the results of the attempts made by the student in the hotpotatoes exercises
Screenshots
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
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;
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