From 6f01ae7196da03930179cb2c80069b1b947f3d0e Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Sat, 16 Jun 2018 14:19:00 +0200 Subject: [PATCH] Patch the commit 846c8cf The data need to be loaded in the analysis phase. The popup in the comparison phase will not be displayed if the value is set to none. --- backend/TE/TakeExercise.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/TE/TakeExercise.php b/backend/TE/TakeExercise.php index fd47171..628c3a8 100644 --- a/backend/TE/TakeExercise.php +++ b/backend/TE/TakeExercise.php @@ -307,6 +307,9 @@ class TakeExerciseFrame extends ExerciseFrame $moreSettings[ 'updatedMinutiaeTimestamp' ] = $db->getAssignmentSubmissionTime( $aid, 'ANALYSIS' ); } + if( ! $isTutorReview && $progress[ 'step' ] == 'ANALYSIS' ) + $moreSettings[ 'defaultSuitabilityApproach' ] = $db->getSuitabilityApproach(); + if( isset( $moreSettings ) ) $settings = array_merge( $settings, $moreSettings ); } -- GitLab