diff --git a/swad_changelog.h b/swad_changelog.h index c1d9af595..e7bca1464 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.186 (2020-04-14)" +#define Log_PLATFORM_VERSION "SWAD 19.186.1 (2020-04-14)" #define CSS_FILE "swad19.146.css" #define JS_FILE "swad19.172.1.js" /* @@ -548,6 +548,7 @@ Funci // TODO: Oresti Baños: cambiar ojos por candados en descriptores para prohibir/permitir y dejar los ojos para poder elegir descriptores // TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub + Version 19.186.1: Apr 14, 2020 Fixed bug in edition of test questions. (287379 lines) Version 19.186: Apr 14, 2020 New module swad_building for buildings in a centre. (287372 lines) 1 change necessary in database: CREATE TABLE IF NOT EXISTS buildings (BldCod INT NOT NULL AUTO_INCREMENT,CtrCod INT NOT NULL,ShortName VARCHAR(511) NOT NULL,FullName VARCHAR(2047) NOT NULL,Location VARCHAR(2047) NOT NULL,UNIQUE INDEX(BldCod),INDEX(CtrCod)); diff --git a/swad_test.c b/swad_test.c index 4faff1430..429032dba 100644 --- a/swad_test.c +++ b/swad_test.c @@ -338,9 +338,17 @@ static void Tst_TstDestructor (struct Tst_Test *Test) static void Tst_ResetTags (struct Tst_Tags *Tags) { + unsigned IndTag; + Tags->Num = 0; Tags->All = false; Tags->List = NULL; + + /***** Initialize all tags in question to empty string *****/ + for (IndTag = 0; + IndTag < Tst_MAX_TAGS_PER_QUESTION; + IndTag++) + Tags->Txt[IndTag][0] = '\0'; } /*****************************************************************************/ @@ -3960,7 +3968,7 @@ static void Tst_PutFormEditOneQst (struct Tst_Question *Question) HTM_OPTION (HTM_Type_STRING,"",false,false," "); mysql_data_seek (mysql_res,0); TagFound = false; - for (NumTag = 1; + for (NumTag = 1; NumTag <= NumTags; NumTag++) {