Version 21.97.2: Jun 02, 2022 Fixed bug in surveys.

This commit is contained in:
acanas 2022-06-02 12:20:05 +02:00
parent 9a559522ce
commit e199aa6d5b
4 changed files with 9 additions and 7 deletions

View File

@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
TODO: Attach pdf files in multimedia.
*/
#define Log_PLATFORM_VERSION "SWAD 21.97.1 (2022-05-30)"
#define Log_PLATFORM_VERSION "SWAD 21.97.2 (2022-06-02)"
#define CSS_FILE "swad21.97.1.css"
#define JS_FILE "swad21.92.js"
/*
Version 21.97.2: Jun 02, 2022 Fixed bug in surveys. (323168 lines)
Version 21.97.1: May 30, 2022 Fixing design of dark theme. (323166 lines)
Version 21.97: May 25, 2022 Code refactoring in timeline. (? lines)
Version 21.96.7: May 19, 2022 Fixed bug in places. (323157 lines)

View File

@ -101,7 +101,7 @@ bool Par_GetQueryString (void)
}
else
{
/***** PUSH method *****/
/***** POST method *****/
/* Get content length */
if (getenv ("CONTENT_LENGTH"))
{

View File

@ -2913,8 +2913,8 @@ static void Svy_GetDataOfQstFromRow (struct Svy_Question *SvyQst,
/***** Get the answer type (row[2]) *****/
SvyQst->AnswerType = Svy_DB_ConvertFromStrAnsTypDBToAnsTyp (row[2]);
/***** Get the stem of the question from the database (row[2]) *****/
Str_Copy (Stem,row[2],Cns_MAX_BYTES_TEXT);
/***** Get the stem of the question from the database (row[3]) *****/
Str_Copy (Stem,row[3],Cns_MAX_BYTES_TEXT);
}
/*****************************************************************************/

View File

@ -929,9 +929,10 @@ unsigned Svy_DB_GetQstDataByCod (MYSQL_RES **mysql_res,long QstCod,long SvyCod)
{
return (unsigned)
DB_QuerySELECT (mysql_res,"can not get a question",
"SELECT QstInd," // row[0]
"AnsType," // row[1]
"Stem" // row[2]
"SELECT QstCod," // row[0]
"QstInd," // row[1]
"AnsType," // row[2]
"Stem" // row[3]
" FROM svy_questions"
" WHERE QstCod=%ld"
" AND SvyCod=%ld", // Extra check