diff --git a/swad_changelog.h b/swad_changelog.h index 23ce56c46..e44be32ad 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -138,13 +138,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.211.1 (2016-05-07)" +#define Log_PLATFORM_VERSION "SWAD 15.211.2 (2016-05-13)" #define CSS_FILE "swad15.210.css" #define JS_FILE "swad15.197.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 15.211.2: May 13, 2016 Fixed bug in test questions, reported by Nuria Torres Rosell. (201394 lines) Version 15.211.1: May 07, 2016 Files in briefcase older than 1 year are removed automatically. (201397 lines) Version 15.211: May 07, 2016 Code refactoring related to removing old files in briefcase. Old files in briefcase are removed automatically. (201396 lines) diff --git a/swad_test.c b/swad_test.c index e0fa3f587..4bcaccd4b 100644 --- a/swad_test.c +++ b/swad_test.c @@ -3272,10 +3272,6 @@ static void Tst_WriteChoiceAnsSeeExam (unsigned NumQst,long QstCod,bool Shuffle) bool ErrorInIndex = false; char ParamName[3+6+1]; - /***** Create test question *****/ - Tst_QstConstructor (); - Gbl.Test.QstCod = QstCod; - /***** Get answers of a question from database *****/ Gbl.Test.Answer.NumOptions = Tst_GetAnswersQst (QstCod,&mysql_res,Shuffle); // Result: AnsInd,Answer,Correct /* @@ -3334,7 +3330,8 @@ static void Tst_WriteChoiceAnsSeeExam (unsigned NumQst,long QstCod,bool Shuffle) NumQst,Gbl.Test.Answer.NumOptions); else // Gbl.Test.AnswerType == Tst_ANS_MULTIPLE_CHOICE fprintf (Gbl.F.Out,"checkbox\""); - fprintf (Gbl.F.Out," name=\"Ans%06u\" value=\"%u\" /> ",NumQst,Index); + fprintf (Gbl.F.Out," name=\"Ans%06u\" value=\"%u\" /> ", + NumQst,Index); fprintf (Gbl.F.Out,"" "%c) " "", @@ -3356,9 +3353,6 @@ static void Tst_WriteChoiceAnsSeeExam (unsigned NumQst,long QstCod,bool Shuffle) /***** Free structure that stores the query result *****/ DB_FreeMySQLResult (&mysql_res); - - /***** Destroy test question *****/ - Tst_QstDestructor (); } /*****************************************************************************/