diff --git a/swad_changelog.h b/swad_changelog.h index 9b31455d..5a1a5877 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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. */ -#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 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: May 22, 2023 Survey comments are stored in database. (337285 lines) 1 change necessary in database: diff --git a/swad_survey.c b/swad_survey.c index 92f10f0c..293da5a1 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -1536,9 +1536,11 @@ void Svy_ResetSurvey (void) /***** Reset all answers in this survey *****/ 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 *****/ - Ale_ShowAlert (Ale_SUCCESS,Txt_Survey_X_reset, - Surveys.Svy.Title); + Ale_ShowAlert (Ale_SUCCESS,Txt_Survey_X_reset,Surveys.Svy.Title); /***** Show surveys again *****/ Svy_ListAllSurveys (&Surveys); @@ -3009,6 +3011,7 @@ static void Svy_WriteCommentsOfAQst (struct Svy_Survey *Svy, struct Svy_Question *SvyQst, bool PutFormAnswerSurvey) { + extern const char *Txt_Comments; unsigned NumComments; unsigned NumCom; MYSQL_RES *mysql_res; @@ -3018,9 +3021,11 @@ static void Svy_WriteCommentsOfAQst (struct Svy_Survey *Svy, { HTM_TEXTAREA_Begin ("name=\"Com%010u\"" " cols=\"60\" rows=\"4\"" - " class=\"INPUT_%s\"", + " class=\"INPUT_%s\"" + " placeholder=\"%s…\"", (unsigned) SvyQst->QstCod, - The_GetSuffix ()); + The_GetSuffix (), + Txt_Comments); HTM_TEXTAREA_End (); } else if (Svy->Status.ICanViewComments)