[18.104.22.168] Display previous attempt test button result in blank popup
on campus.chamilo.org 22.214.171.124
I pass a test
I click on "Show" to review my previous attempt and I've got a blick popup
Updated by Julio Montoya about 4 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 about 4 years ago
Is it already fixed? how can we get this fix?
In internet explorer (in 126.96.36.199) 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 about 4 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 188.8.131.52...?
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 about 4 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.