diff --git a/swad_browser.c b/swad_browser.c index 0d69562c..37a3d1f1 100644 --- a/swad_browser.c +++ b/swad_browser.c @@ -2738,6 +2738,9 @@ void Brw_ShowFileBrowserProject (long PrjCod) Brw_ShowFileBrowser (); } + /***** Put legal notice *****/ + Brw_PutLegalNotice (); + /***** End fieldset *****/ HTM_FIELDSET_End (); } diff --git a/swad_changelog.h b/swad_changelog.h index 30564d77..0e8bf1f9 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.5 (2023-05-23)" +#define Log_PLATFORM_VERSION "SWAD 22.118.6 (2023-05-24)" #define CSS_FILE "swad22.118.5.css" #define JS_FILE "swad22.49.js" /* + Version 22.118.6: May 24, 2023 Fixed bug in rubrics. (337363 lines) Version 22.118.5: May 23, 2023 Changes in comments in surveys. (337360 lines) Version 22.118.4: May 23, 2023 Fix CSS related to frequent actions. (337351 lines) Version 22.118.3: May 23, 2023 Fix CSS related to left and right columns. (337351 lines) diff --git a/swad_project.c b/swad_project.c index 6bdac6c5..4aa78aac 100644 --- a/swad_project.c +++ b/swad_project.c @@ -1326,9 +1326,6 @@ void Prj_ShowOneProject (void) Prj_ShowBoxWithOneProject (&Projects); Prj_FreeMemProject (&Projects.Prj); - /***** Put legal notice *****/ - Brw_PutLegalNotice (); - /***** Show projects again *****/ Prj_ShowProjects (&Projects); } @@ -4506,6 +4503,7 @@ static void Prj_ShowRubrics (struct Prj_Projects *Projects) HTM_TABLE_BeginWideMarginPadding (5); /***** Show rubrics of each type ready to fill them *****/ + for (RubricType = (PrjCfg_RubricType_t) 1; RubricType <= (PrjCfg_RubricType_t) (PrjCfg_NUM_RUBRIC_TYPES - 1); RubricType++) @@ -4587,6 +4585,9 @@ static void Prj_ShowRubricsOfType (struct Prj_Projects *Projects, /***** Free memory used for rubric *****/ Rub_RubricDestructor (&Rubric); } + + /***** Free structure that stores the query result *****/ + DB_FreeMySQLResult (&mysql_res); } /*****************************************************************************/ diff --git a/swad_rubric_criteria.c b/swad_rubric_criteria.c index 369bd305..7a4c9362 100644 --- a/swad_rubric_criteria.c +++ b/swad_rubric_criteria.c @@ -567,7 +567,7 @@ void RubCri_ListCriteriaInProject (struct Prj_Projects *Projects,long RubCod, { MYSQL_RES *mysql_res; unsigned NumCriteria; - struct Rub_Node *TOS; + struct Rub_Node *TOS = NULL; /***** Get data of rubric criteria from database *****/ NumCriteria = Rub_DB_GetCriteria (&mysql_res,RubCod);