Version 15.211.2

This commit is contained in:
Antonio Cañas Vargas 2016-05-13 14:29:34 +02:00
parent 3e3ba1fdf6
commit 031dc19e13
2 changed files with 4 additions and 9 deletions

View File

@ -138,13 +138,14 @@
/****************************** Public constants *****************************/ /****************************** 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 CSS_FILE "swad15.210.css"
#define JS_FILE "swad15.197.js" #define JS_FILE "swad15.197.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // 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 // 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.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. Version 15.211: May 07, 2016 Code refactoring related to removing old files in briefcase.
Old files in briefcase are removed automatically. (201396 lines) Old files in briefcase are removed automatically. (201396 lines)

View File

@ -3272,10 +3272,6 @@ static void Tst_WriteChoiceAnsSeeExam (unsigned NumQst,long QstCod,bool Shuffle)
bool ErrorInIndex = false; bool ErrorInIndex = false;
char ParamName[3+6+1]; char ParamName[3+6+1];
/***** Create test question *****/
Tst_QstConstructor ();
Gbl.Test.QstCod = QstCod;
/***** Get answers of a question from database *****/ /***** Get answers of a question from database *****/
Gbl.Test.Answer.NumOptions = Tst_GetAnswersQst (QstCod,&mysql_res,Shuffle); // Result: AnsInd,Answer,Correct 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); NumQst,Gbl.Test.Answer.NumOptions);
else // Gbl.Test.AnswerType == Tst_ANS_MULTIPLE_CHOICE else // Gbl.Test.AnswerType == Tst_ANS_MULTIPLE_CHOICE
fprintf (Gbl.F.Out,"checkbox\""); fprintf (Gbl.F.Out,"checkbox\"");
fprintf (Gbl.F.Out," name=\"Ans%06u\" value=\"%u\" /> </td>",NumQst,Index); fprintf (Gbl.F.Out," name=\"Ans%06u\" value=\"%u\" /> </td>",
NumQst,Index);
fprintf (Gbl.F.Out,"<td class=\"TEST LEFT_TOP\">" fprintf (Gbl.F.Out,"<td class=\"TEST LEFT_TOP\">"
"%c)&nbsp;" "%c)&nbsp;"
"</td>", "</td>",
@ -3356,9 +3353,6 @@ static void Tst_WriteChoiceAnsSeeExam (unsigned NumQst,long QstCod,bool Shuffle)
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
/***** Destroy test question *****/
Tst_QstDestructor ();
} }
/*****************************************************************************/ /*****************************************************************************/