From c7dc81a679f944f868c0243b8bb66a545cd6d783 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 23 May 2016 15:58:17 +0200 Subject: [PATCH 1/5] Fix option RESULT_DISABLE_SHOW_SCORE_ATTEMPT_SHOW_ANSWERS_LAST_ATTEMPT BT#11202 --- main/inc/lib/exercise.lib.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/main/inc/lib/exercise.lib.php b/main/inc/lib/exercise.lib.php index aa7e5ff120..7e0b2eae3c 100644 --- a/main/inc/lib/exercise.lib.php +++ b/main/inc/lib/exercise.lib.php @@ -3461,8 +3461,7 @@ HOTSPOT; $objExercise, $exe_id, $save_user_result = false - ) - { + ) { global $origin; // Getting attempt info @@ -3532,16 +3531,19 @@ HOTSPOT; if ($attempts) { $numberAttempts = count($attempts); - if ($save_user_result) { - $numberAttempts++; - } - if ($numberAttempts >= $objExercise->attempts) { - $show_results = true; - $show_only_score = false; - $show_total_score_and_user_choices = false; - } else { - $show_total_score_and_user_choices = true; - } + } else { + $numberAttempts = 0; + } + + if ($save_user_result) { + $numberAttempts++; + } + if ($numberAttempts >= $objExercise->attempts) { + $show_results = true; + $show_only_score = false; + $show_total_score_and_user_choices = false; + } else { + $show_total_score_and_user_choices = true; } } } From 1297b8c79a75440f50f5b6c21f47236bb64e3f54 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 23 May 2016 23:35:44 -0500 Subject: [PATCH 2/5] Update changelog for 1.10.6 --- documentation/changelog.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/documentation/changelog.html b/documentation/changelog.html index 45b852f32e..1b97173ccb 100755 --- a/documentation/changelog.html +++ b/documentation/changelog.html @@ -49,7 +49,7 @@ -

Chamilo 1.10.6 - Zacatecas, 23rd of May 2016

+

Chamilo 1.10.6 - Zacatecas, 24th of May 2016

Release notes - summary

Chamilo 1.10.6 is a minor, bugfix release of the 1.10.x branch, with a few new features and bugfixes on top of 1.10.4.

Release name

@@ -86,6 +86,20 @@

Improvements (minor features) and debug