Bug #7608
[1.9.10.2] Display previous attempt test button result in blank popup
Description
HI,
on campus.chamilo.org 1.9.10.2
I pass a test
I click on "Show" to review my previous attempt and I've got a blick popup
Files
History
Updated by Yannick Warnier about 6 years ago
- Status changed from New to Assigned
- Assignee set to Imanol Losada
Imanol, could you give a link to your fix for that? (it's already fixed)
Updated by Yannick Warnier almost 6 years ago
As discussed in person, showing the previous attempt should work in 1.10.x, but it should consider the results_disabled column (the option in the exercise creation that says "exam mode" should not be selected).
Updated by Yannick Warnier almost 6 years ago
- Assignee changed from Imanol Losada to Julio Montoya
Updated by Julio Montoya almost 6 years ago
- Status changed from Assigned to Needs more info
- Assignee deleted (
Julio Montoya)
Yannick Warnier wrote:
As discussed in person, showing the previous attempt should work in 1.10.x, but it should consider the results_disabled column (the option in the exercise creation that says "exam mode" should not be selected).
In 1.10, when results_disabled = true, the option doesn't appear.
I can't reproduce the error.
Updated by Yannick Warnier almost 6 years ago
- Status changed from Needs more info to Assigned
- Assignee set to Hubert Borderiou
- Target version deleted (
1.10.0)
Hubert, I'm not sure whether you want to put this in 1.9.x or not. I'll remove the "1.10.0" version so it doesn't block the release.
Updated by Michael Jongkamp almost 6 years ago
Is it already fixed? how can we get this fix?
In internet explorer (in 1.9.10.2) we have more strange effects when you click on "Show"
First you get a notice that you have insufficient rights to view this page and a link to the course homepage. (fig 1)
But when you click on the link to return to course homepage then you see this page in the learning content frame. (fig 2)
Updated by Yannick Warnier over 5 years ago
Hi Michael,
We haven't fixed this in 1.9.x, only in 1.10.x. I believe the related fix is this https://github.com/chamilo/chamilo-lms/commit/2fdb8e62a8eb8a9f37fb9fe31f1d16f5788665f1 but it uses Bootstrap 3, which is a change in comparison to Boostrap 2 that we used in 1.9.x. Maybe you can check these changes and find you own fix for 1.9.10.2...?
In any case, you can also check the changes made to the main/exercice/overview.php file over the last year or so to try and get which one actually broke the popup. They're not too many, so you might find it quickly: https://github.com/chamilo/chamilo-lms/commits/2fdb8e62a8eb8a9f37fb9fe31f1d16f5788665f1/main/exercice/overview.php
Updated by Miguel van den Branden over 5 years ago
Hello,
I think I found a fix.
Edit the following file: main/exercice/overview.php
On rule 168:
$attempt_url = api_get_path(WEB_CODE_PATH) . 'exercice/result.php?' . api_get_cidreq() . '&id=' . $attempt_result['exe_id'] . '&id_session=' . api_get_session_id() . '&height=500&width=950' . $url_suffix;
needs to be replaced by:
$attempt_url = api_get_path(WEB_CODE_PATH) . 'exercice/result.php?' . api_get_cidreq() . '&id=' . $attempt_result['exe_id'] . '&modal_size=lg' . $url_suffix;
The modal should work.