Version 22.74.2: Mar 10, 2023 Fixed bugs in exam sets.

This commit is contained in:
acanas 2023-03-10 20:04:25 +01:00
parent 69e7642ecc
commit d9bc2bd51f
4 changed files with 8 additions and 5 deletions

View File

@ -629,11 +629,12 @@ TODO: Emilce Barrera Mesa: Podr
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
*/
#define Log_PLATFORM_VERSION "SWAD 22.74.1 (2023-03-10)"
#define Log_PLATFORM_VERSION "SWAD 22.74.2 (2023-03-10)"
#define CSS_FILE "swad22.57.1.css"
#define JS_FILE "swad22.49.js"
/*
Version 22.74.1: Mar 10, 2023 Fixed links to help. (? lines)
Version 22.74.2: Mar 10, 2023 Fixed bugs in exam sets. (336744 lines)
Version 22.74.1: Mar 10, 2023 Fixed links to help. (336741 lines)
Version 22.74: Mar 10, 2023 New module swad_parameter_code. (336740 lines)
Version 22.73.1: Mar 10, 2023 Code refactoring in parameters. (336657 lines)
Version 22.73: Mar 10, 2023 Code refactoring in parameters. (336668 lines)

View File

@ -288,7 +288,7 @@ void ExaSet_ReceiveFormSet (void)
/***** Get parameters *****/
Exa_GetPars (&Exams,true);
Set.ExaCod = Exams.Exam.ExaCod;
Exams.SetCod = Set.SetCod = ParCod_GetPar (ParCod_Ses);
Exams.SetCod = Set.SetCod = ParCod_GetPar (ParCod_Set);
ItsANewSet = (Set.SetCod <= 0);
/***** Get exam data from database *****/
@ -506,7 +506,7 @@ void ExaSet_RequestCreatOrEditSet (void)
/***** Get parameters *****/
Exa_GetPars (&Exams,true);
Exams.SetCod = Set.SetCod = ParCod_GetPar (ParCod_Ses);
Exams.SetCod = Set.SetCod = ParCod_GetPar (ParCod_Set);
ItsANewSet = (Set.SetCod <= 0);
/***** Get exam data from database *****/
@ -1678,7 +1678,7 @@ static void ExaSet_GetAndCheckPars (struct Exa_Exams *Exams,
/***** Get parameters *****/
Exa_GetPars (Exams,true);
Grp_GetParWhichGroups ();
Set->SetCod = ParCod_GetAndCheckPar (ParCod_Ses);
Set->SetCod = ParCod_GetAndCheckPar (ParCod_Set);
/***** Get exam data from database *****/
Exa_GetDataOfExamByCod (&Exams->Exam);

View File

@ -82,6 +82,7 @@ const char *Par_CodeStr[] =
[ParCod_Rsc ] = "RscCod", // Resource code in course program
[ParCod_Rub ] = "RubCod", // Rubric code
[ParCod_Ses ] = "SesCod", // Session code in exam
[ParCod_Set ] = "SetCod", // Set of questions code in exam
[ParCod_Svy ] = "SvyCod", // Syrvey code
[ParCod_Tag ] = "TagCod", // Tag code in assessment question
[ParCod_Thr ] = "ThrCod", // Thread code in forum

View File

@ -74,6 +74,7 @@ typedef enum
ParCod_Rsc, // Resource code in course program
ParCod_Rub, // Rubric code
ParCod_Ses, // Session code in exam
ParCod_Set, // Set of questions code in exam
ParCod_Svy, // Syrvey code
ParCod_Tag, // Tag code in assessment question
ParCod_Thr, // Thread code in forum