From adf8fba5b3dcf988c8e96f707a0168e93b90d0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Fri, 24 Feb 2017 19:04:52 +0100 Subject: [PATCH] Version 16.140.4 --- swad_changelog.h | 3 ++- swad_test.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 47b0ba100..165c8077b 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -204,13 +204,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.140.3 (2017-02-24)" +#define Log_PLATFORM_VERSION "SWAD 16.140.4 (2017-02-24)" #define CSS_FILE "swad16.139.6.css" #define JS_FILE "swad16.140.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 16.140.4: Feb 24, 2017 Fixed bug in T/F test questions, reported by Nuria Torres Rosell. (213009 lines) Version 16.140.3: Feb 24, 2017 Changed refreshing of timeline from 30 to 10 seconds. Code refactoring in timeline when I do not follow any user. (213006 lines) Version 16.140.2: Feb 24, 2017 Changed text of users to view in global timeline. (212994 lines) diff --git a/swad_test.c b/swad_test.c index bad62dfd2..03aaae2af 100644 --- a/swad_test.c +++ b/swad_test.c @@ -5279,6 +5279,7 @@ static void Tst_GetQstFromForm (char *Stem,char *Feedback) char AnsStr[6 + 10 + 1]; char FbStr[5 + 10 + 1]; char StrMultiAns[Tst_MAX_SIZE_ANSWERS_ONE_QST + 1]; + char TF[1 + 1]; // (T)rue or (F)alse const char *Ptr; unsigned NumCorrectAns; @@ -5353,7 +5354,8 @@ static void Tst_GetQstFromForm (char *Stem,char *Feedback) Tst_MAX_BYTES_FLOAT_ANSWER); break; case Tst_ANS_TRUE_FALSE: - Gbl.Test.Answer.TF = Par_GetParToBool ("AnsTF"); + Par_GetParToText ("AnsTF",TF,1); + Gbl.Test.Answer.TF = TF[0]; break; case Tst_ANS_UNIQUE_CHOICE: case Tst_ANS_MULTIPLE_CHOICE: