From 300cc89f57e4a3fd2dfb415602e03e5c6a4eba6e Mon Sep 17 00:00:00 2001 From: acanas Date: Mon, 11 May 2020 13:23:42 +0200 Subject: [PATCH] Version19.223.2 --- swad_changelog.h | 3 ++- swad_exam_print.c | 16 +++++++++++++--- swad_test.c | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 4e7301d45..4a405ead1 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -548,10 +548,11 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.223.1 (2020-05-11)" +#define Log_PLATFORM_VERSION "SWAD 19.223.2 (2020-05-11)" #define CSS_FILE "swad19.217.css" #define JS_FILE "swad19.223.js" /* + Version 19.223.2: May 11, 2020 Stored T/F answers in exam print. (303034 lines) Version 19.223.1: May 11, 2020 Code refactoring in exam print. Stored float and text answers. (303023 lines) Version 19.223: May 11, 2020 Store int answer and refresh exam print. (303024 lines) Version 19.222.2: May 10, 2020 Fixed bugs in exams. (302852 lines) diff --git a/swad_exam_print.c b/swad_exam_print.c index 69d2715cd..55035809d 100644 --- a/swad_exam_print.c +++ b/swad_exam_print.c @@ -748,17 +748,27 @@ static void ExaPrn_WriteTFAnsToFill (const struct ExaPrn_Print *Print, unsigned NumQst) { extern const char *Txt_TF_QST[2]; + char Id[3 + Cns_MAX_DECIMAL_DIGITS_UINT + 1]; // "Ansxx...x" /***** Write selector for the answer *****/ /* Initially user has not answered the question ==> initially all the answers will be blank. If the user does not confirm the submission of their exam ==> ==> the exam may be half filled ==> the answers displayed will be those selected by the user. */ - HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE, - "name=\"Ans%010u\"",NumQst); + snprintf (Id,sizeof (Id), + "Ans%010u", + NumQst); + HTM_TxtF (""); } /*****************************************************************************/ diff --git a/swad_test.c b/swad_test.c index 9ac82a4b6..d2cd1e903 100644 --- a/swad_test.c +++ b/swad_test.c @@ -3096,7 +3096,7 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForSet (struct Exa_Exams *Exam HTM_TABLE_End (); /***** Button to add questions *****/ - Btn_PutConfirmButton (Txt_Add_questions); + Btn_PutCreateButton (Txt_Add_questions); /***** End form *****/ Frm_EndForm (); @@ -3178,7 +3178,7 @@ static void Tst_ListOneOrMoreQuestionsForSelectionForGame (struct Gam_Games *Gam HTM_TABLE_End (); /***** Button to add questions *****/ - Btn_PutConfirmButton (Txt_Add_questions); + Btn_PutCreateButton (Txt_Add_questions); /***** End form *****/ Frm_EndForm ();