diff --git a/sql/swad.sql b/sql/swad.sql index 13611c8f5..0cf975b22 100644 --- a/sql/swad.sql +++ b/sql/swad.sql @@ -1281,6 +1281,7 @@ CREATE TABLE IF NOT EXISTS tst_config ( Def INT NOT NULL, Max INT NOT NULL, MinTimeNxtTstPerQst INT NOT NULL DEFAULT 0, + Visibility INT NOT NULL DEFAULT 0x1f, Feedback ENUM('nothing','total_result','each_result','each_good_bad','full_feedback') NOT NULL, UNIQUE INDEX(CrsCod)); -- diff --git a/swad_changelog.h b/swad_changelog.h index 1447aea52..7ccc4b507 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.124 (2020-02-17)" +#define Log_PLATFORM_VERSION "SWAD 19.124.1 (2020-02-17)" #define CSS_FILE "swad19.118.css" #define JS_FILE "swad19.91.1.js" /* @@ -507,6 +507,16 @@ ps2pdf source.ps destination.pdf // TODO: En la lista de conectados central, poner el logo de la institución a la que pertenece el usuario // TODO: Urgente: Añadir nuevos niveles de realimentación tras sugerencia de Mancia y conversación con Javier. + Version 19.124.1: Feb 17, 2020 Fixed bug reported by Javier Fernández Baldomero. + Result visibility in tests is stored in database. (279010 lines) + 6 changes necessary in database: +ALTER TABLE tst_config ADD COLUMN Visibility INT NOT NULL DEFAULT 0x1f AFTER MinTimeNxtTstPerQst; +UPDATE tst_config SET Visibility=0x01 WHERE Feedback='nothing'; +UPDATE tst_config SET Visibility=0x11 WHERE Feedback='total_result'; +UPDATE tst_config SET Visibility=0x19 WHERE Feedback='each_result'; +UPDATE tst_config SET Visibility=0x1d WHERE Feedback='each_good_bad'; +UPDATE tst_config SET Visibility=0x1f WHERE Feedback='full_feedback'; + Version 19.124: Feb 17, 2020 New form for result visibility in tests. (279001 lines) Version 19.123: Feb 16, 2020 New module swad_test_result for test results. (278815 lines) Version 19.122.4: Feb 14, 2020 Fixed bug refreshing degree average photo. (278699 lines) diff --git a/swad_database.c b/swad_database.c index 5e09048cd..f56a32532 100644 --- a/swad_database.c +++ b/swad_database.c @@ -2713,9 +2713,10 @@ mysql> DESCRIBE tst_config; | Def | int(11) | NO | | NULL | | | Max | int(11) | NO | | NULL | | | MinTimeNxtTstPerQst | int(11) | NO | | 0 | | +| Visibility | int(11) | NO | | 31 | | | Feedback | enum('nothing','total_result','each_result','each_good_bad','full_feedback') | NO | | NULL | | +---------------------+------------------------------------------------------------------------------+------+-----+---------+-------+ -7 rows in set (0,00 sec) +8 rows in set (0.00 sec) */ DB_CreateTable ("CREATE TABLE IF NOT EXISTS tst_config (" "CrsCod INT NOT NULL DEFAULT -1," @@ -2724,6 +2725,7 @@ mysql> DESCRIBE tst_config; "Def INT NOT NULL," "Max INT NOT NULL," "MinTimeNxtTstPerQst INT NOT NULL DEFAULT 0," + "Visibility INT NOT NULL DEFAULT 0x1f," "Feedback ENUM('nothing','total_result','each_result','each_good_bad','full_feedback') NOT NULL," "UNIQUE INDEX(CrsCod))"); diff --git a/swad_group.c b/swad_group.c index b8b930cd8..c70545d60 100644 --- a/swad_group.c +++ b/swad_group.c @@ -2261,10 +2261,7 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp, } } else - { Checked = false; - HTM_Txt (" disabled=\"disabled\""); - } HTM_TR_Begin (NULL);