Version20.2.1

This commit is contained in:
acanas 2020-09-27 17:38:51 +02:00
parent a2d5cad467
commit ec4b166e32
3 changed files with 11 additions and 8 deletions

View File

@ -555,7 +555,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 20.2 (2020-09-26)"
#define Log_PLATFORM_VERSION "SWAD 20.2.1 (2020-09-27)"
#define CSS_FILE "swad20.1.1.css"
#define JS_FILE "swad19.254.js"
/*
@ -573,6 +573,7 @@ TODO: Que al generar un examen s
TODO: Create module swad_test_result
"sudo apt install webp" en Ubuntu, y "yum install libwebp libwebp-tools" en CentOS, para decodificar imágenes Web/ug reportado por Javier Fernández Baldomero.
Version 20.2.1: Sep 27, 2020 Fixed bug in exam, reported by Nuria Torres Rosell. (304442 lines)
Version 20.2: Sep 26, 2020 Removed unused action.
Contextual menu in box used to write a new message.
Changes in help links. (304440 lines)

View File

@ -28,9 +28,9 @@
/** Uncomment one of the following installations of SWAD or create your own **/
/*****************************************************************************/
#define LOCALHOST_UBUNTU // Comment this line if not applicable
//#define LOCALHOST_UBUNTU // Comment this line if not applicable
//#define OPENSWAD_ORG // Comment this line if not applicable
//#define SWAD_UGR_ES // Comment this line if not applicable
#define SWAD_UGR_ES // Comment this line if not applicable
//#define SWADBERRY_UGR_ES // Comment this line if not applicable
/*****************************************************************************/

View File

@ -195,10 +195,9 @@ void ExaPrn_ShowExamPrint (void)
/***** Check if I can access to this session *****/
if (ExaSes_CheckIfICanAnswerThisSession (&Exam,&Session))
{
/***** Get print data from database *****/
/***** Set basic data of exam print *****/
Print.SesCod = Session.SesCod;
Print.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
ExaPrn_GetDataOfPrintBySesCodAndUsrCod (&Print);
if (Print.PrnCod <= 0) // Print does not exists ==> create it
{
@ -215,9 +214,12 @@ void ExaPrn_ShowExamPrint (void)
ExaLog_SetAction (ExaLog_START_EXAM);
ExaLog_SetIfCanAnswer (true);
}
}
}
else // Print exists
{
{
/***** Get exam print data from database *****/
ExaPrn_GetDataOfPrintBySesCodAndUsrCod (&Print);
/***** Get questions and current user's answers from database *****/
ExaPrn_GetPrintQuestionsFromDB (&Print);
@ -578,7 +580,7 @@ static void ExaPrn_CreatePrintInDB (struct ExaPrn_Print *Print)
" VALUES"
" (%ld,%ld,NOW(),NOW(),%u,0,'N',0)",
Print->SesCod,
Gbl.Usrs.Me.UsrDat.UsrCod,
Print->UsrCod,
Print->NumQsts.All);
/***** Store all questions (with blank answers)