diff --git a/swad_changelog.h b/swad_changelog.h index 1cabcafe..0f28bc8f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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) diff --git a/swad_parameter.c b/swad_parameter.c index f471d980..6859543c 100644 --- a/swad_parameter.c +++ b/swad_parameter.c @@ -101,7 +101,7 @@ bool Par_GetQueryString (void) } else { - /***** PUSH method *****/ + /***** POST method *****/ /* Get content length */ if (getenv ("CONTENT_LENGTH")) { diff --git a/swad_survey.c b/swad_survey.c index 43551c1c..54faeec0 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -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); } /*****************************************************************************/ diff --git a/swad_survey_database.c b/swad_survey_database.c index 59783374..1514cf0a 100644 --- a/swad_survey_database.c +++ b/swad_survey_database.c @@ -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