[22.214.171.124] Display previous attempt test button result in blank popup
on campus.chamilo.org 126.96.36.199
I pass a test
I click on "Show" to review my previous attempt and I've got a blick popup
Updated by Julio Montoya almost 6 years ago
- Status changed from Assigned to Needs more info
- Assignee deleted (
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 Michael Jongkamp almost 6 years ago
Is it already fixed? how can we get this fix?
In internet explorer (in 188.8.131.52) 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
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 184.108.40.206...?
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
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.