Version 22.118.2: May 23, 2023 Changes in survey comments.

This commit is contained in:
acanas 2023-05-23 00:19:28 +02:00
parent e34ffd3211
commit 7c2e1d8878
2 changed files with 11 additions and 5 deletions

View File

@ -629,10 +629,11 @@ 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. 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.118.1 (2023-05-22)" #define Log_PLATFORM_VERSION "SWAD 22.118.2 (2023-05-23)"
#define CSS_FILE "swad22.107.36.css" #define CSS_FILE "swad22.107.36.css"
#define JS_FILE "swad22.49.js" #define JS_FILE "swad22.49.js"
/* /*
Version 22.118.2: May 23, 2023 Changes in survey comments. (337339 lines)
Version 22.118.1: May 22, 2023 Remove survey comments from database. (337334 lines) Version 22.118.1: May 22, 2023 Remove survey comments from database. (337334 lines)
Version 22.118: May 22, 2023 Survey comments are stored in database. (337285 lines) Version 22.118: May 22, 2023 Survey comments are stored in database. (337285 lines)
1 change necessary in database: 1 change necessary in database:

View File

@ -1536,9 +1536,11 @@ void Svy_ResetSurvey (void)
/***** Reset all answers in this survey *****/ /***** Reset all answers in this survey *****/
Svy_DB_ResetAnswersSvy (Surveys.Svy.SvyCod); Svy_DB_ResetAnswersSvy (Surveys.Svy.SvyCod);
/***** Remove all comments in this survey *****/
Svy_DB_RemoveCommentsSvy (Surveys.Svy.SvyCod);
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
Ale_ShowAlert (Ale_SUCCESS,Txt_Survey_X_reset, Ale_ShowAlert (Ale_SUCCESS,Txt_Survey_X_reset,Surveys.Svy.Title);
Surveys.Svy.Title);
/***** Show surveys again *****/ /***** Show surveys again *****/
Svy_ListAllSurveys (&Surveys); Svy_ListAllSurveys (&Surveys);
@ -3009,6 +3011,7 @@ static void Svy_WriteCommentsOfAQst (struct Svy_Survey *Svy,
struct Svy_Question *SvyQst, struct Svy_Question *SvyQst,
bool PutFormAnswerSurvey) bool PutFormAnswerSurvey)
{ {
extern const char *Txt_Comments;
unsigned NumComments; unsigned NumComments;
unsigned NumCom; unsigned NumCom;
MYSQL_RES *mysql_res; MYSQL_RES *mysql_res;
@ -3018,9 +3021,11 @@ static void Svy_WriteCommentsOfAQst (struct Svy_Survey *Svy,
{ {
HTM_TEXTAREA_Begin ("name=\"Com%010u\"" HTM_TEXTAREA_Begin ("name=\"Com%010u\""
" cols=\"60\" rows=\"4\"" " cols=\"60\" rows=\"4\""
" class=\"INPUT_%s\"", " class=\"INPUT_%s\""
" placeholder=\"%s…\"",
(unsigned) SvyQst->QstCod, (unsigned) SvyQst->QstCod,
The_GetSuffix ()); The_GetSuffix (),
Txt_Comments);
HTM_TEXTAREA_End (); HTM_TEXTAREA_End ();
} }
else if (Svy->Status.ICanViewComments) else if (Svy->Status.ICanViewComments)