mirror of
https://github.com/acanas/swad-core.git
synced 2024-05-28 20:43:27 +02:00
Version 16.72.1
This commit is contained in:
parent
33abc42946
commit
17756d67e3
|
@ -178,13 +178,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 16.72 (2016-11-27)"
|
#define Log_PLATFORM_VERSION "SWAD 16.72.1 (2016-11-27)"
|
||||||
#define CSS_FILE "swad16.69.css"
|
#define CSS_FILE "swad16.69.css"
|
||||||
#define JS_FILE "swad16.46.1.js"
|
#define JS_FILE "swad16.46.1.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 16.72.1: Nov 27, 2016 Fixed bug in answers of test questions, reported by Javier Fernández Baldomero. (207704 lines)
|
||||||
Version 16.72: Nov 27, 2016 Link to show all users' data.
|
Version 16.72: Nov 27, 2016 Link to show all users' data.
|
||||||
Code refactoring in scopes. (207698 lines)
|
Code refactoring in scopes. (207698 lines)
|
||||||
Version 16.71.9: Nov 27, 2016 Fixed bug in list of students, reported by Javier Fernández Baldomero. (207641 lines)
|
Version 16.71.9: Nov 27, 2016 Fixed bug in list of students, reported by Javier Fernández Baldomero. (207641 lines)
|
||||||
|
|
15
swad_test.c
15
swad_test.c
|
@ -3737,7 +3737,11 @@ static void Tst_WriteTextAnsAssessTest (unsigned NumQst,MYSQL_RES *mysql_res,
|
||||||
{
|
{
|
||||||
/* Filter the user answer */
|
/* Filter the user answer */
|
||||||
strcpy (TextAnsUsr,Gbl.Test.StrAnswersOneQst[NumQst]);
|
strcpy (TextAnsUsr,Gbl.Test.StrAnswersOneQst[NumQst]);
|
||||||
Str_ReplaceSeveralSpacesForOne (TextAnsUsr); // Join several spaces into one in answer
|
|
||||||
|
/* In order to compare student answer to stored answer,
|
||||||
|
the text answers are stored avoiding two or more consecurive spaces */
|
||||||
|
Str_ReplaceSeveralSpacesForOne (TextAnsUsr);
|
||||||
|
|
||||||
Str_ConvertToComparable (TextAnsUsr);
|
Str_ConvertToComparable (TextAnsUsr);
|
||||||
|
|
||||||
for (NumOpt = 0;
|
for (NumOpt = 0;
|
||||||
|
@ -4419,8 +4423,8 @@ void Tst_ShowFormEditOneQst (void)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
// This function may be called from three places:
|
// This function may be called from three places:
|
||||||
// 1. Pressing edition of question in the menu
|
// 1. By clicking "New question" icon
|
||||||
// 2. Pressing button to edit question in a listing of existing questions
|
// 2. By clicking "Edit" icon in a listing of existing questions
|
||||||
// 3. From the action associated to reception of a question, on error in the parameters received from the form
|
// 3. From the action associated to reception of a question, on error in the parameters received from the form
|
||||||
|
|
||||||
static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
|
static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
|
||||||
|
@ -5341,7 +5345,10 @@ static void Tst_GetQstFromForm (char *Stem,char *Feedback)
|
||||||
/* Get answer */
|
/* Get answer */
|
||||||
sprintf (AnsStr,"AnsStr%u",NumOpt);
|
sprintf (AnsStr,"AnsStr%u",NumOpt);
|
||||||
Par_GetParToHTML (AnsStr,Gbl.Test.Answer.Options[NumOpt].Text,Tst_MAX_BYTES_ANSWER_OR_FEEDBACK);
|
Par_GetParToHTML (AnsStr,Gbl.Test.Answer.Options[NumOpt].Text,Tst_MAX_BYTES_ANSWER_OR_FEEDBACK);
|
||||||
Str_ReplaceSeveralSpacesForOne (Gbl.Test.Answer.Options[NumOpt].Text); // Join several spaces into one in answer
|
if (Gbl.Test.AnswerType == Tst_ANS_TEXT)
|
||||||
|
/* In order to compare student answer to stored answer,
|
||||||
|
the text answers are stored avoiding two or more consecurive spaces */
|
||||||
|
Str_ReplaceSeveralSpacesForOne (Gbl.Test.Answer.Options[NumOpt].Text);
|
||||||
|
|
||||||
/* Get feedback */
|
/* Get feedback */
|
||||||
sprintf (FbStr,"FbStr%u",NumOpt);
|
sprintf (FbStr,"FbStr%u",NumOpt);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user