From 3787dea60aaba4a977440415f2f7ab45140efcab Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 19 Sep 2023 18:59:15 +0200 Subject: [PATCH] Version 23.9.4: Sep 19, 2023 Code refactoring in calls for exams. --- swad_call_for_exam.c | 13 ++++--------- swad_changelog.h | 3 ++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/swad_call_for_exam.c b/swad_call_for_exam.c index 1abdcdf76..1c3058c18 100644 --- a/swad_call_for_exam.c +++ b/swad_call_for_exam.c @@ -877,7 +877,6 @@ static void Cfe_ShowCallForExam (struct Cfe_CallsForExams *CallsForExams, extern const char *Txt_minute; extern const char *Txt_minutes; extern const char *Txt_Publish_call_FOR_EXAM; - struct Hie_Node Ins; char StrExamDate[Cns_MAX_BYTES_DATE + 1]; unsigned CurrentYear = Dat_GetCurrentYear (); unsigned Year; @@ -902,10 +901,6 @@ static void Cfe_ShowCallForExam (struct Cfe_CallsForExams *CallsForExams, [Cfe_FORM_VIEW ][Cfe_DELETED_CALL_FOR_EXAM] = NULL, // Not applicable here }; - /***** Get data of institution of this degree *****/ - Ins.Cod = Gbl.Hierarchy.Node[HieLvl_INS].Cod; - Ins_GetInstitDataByCod (&Ins); - /***** Build anchor string *****/ Frm_SetAnchorStr (ExaCod,&Anchor); @@ -955,13 +950,13 @@ static void Cfe_ShowCallForExam (struct Cfe_CallsForExams *CallsForExams, The_GetSuffix ()); if (TypeViewCallForExam == Cfe_NORMAL_VIEW) HTM_A_Begin ("href=\"%s\" target=\"_blank\" class=\"EXAM_TIT_%s\"", - Ins.WWW,The_GetSuffix ()); + Gbl.Hierarchy.Node[HieLvl_INS].WWW,The_GetSuffix ()); Lgo_DrawLogo (HieLvl_INS, - Ins.Cod, - Ins.FullName, + Gbl.Hierarchy.Node[HieLvl_INS].Cod, + Gbl.Hierarchy.Node[HieLvl_INS].FullName, 64,NULL); HTM_BR (); - HTM_Txt (Ins.FullName); + HTM_Txt (Gbl.Hierarchy.Node[HieLvl_INS].FullName); if (TypeViewCallForExam == Cfe_NORMAL_VIEW) HTM_A_End (); HTM_TD_End (); diff --git a/swad_changelog.h b/swad_changelog.h index 5e7f8b39f..9c122de7e 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -632,10 +632,11 @@ TODO: Francisco Javier Fern Me sale este error, no sé si por no recordar yo la sintaxis apropiada para mandar a varios destinatarios. ¿No era así? "can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod') */ -#define Log_PLATFORM_VERSION "SWAD 23.9.3 (2023-09-19)" +#define Log_PLATFORM_VERSION "SWAD 23.9.4 (2023-09-19)" #define CSS_FILE "swad22.120.4.css" #define JS_FILE "swad22.49.js" /* + Version 23.9.4: Sep 19, 2023 Code refactoring in calls for exams. (337504 lines) Version 23.9.3: Sep 19, 2023 Changes and code refactoring related to class photo. (337507 lines) Version 23.9.2: Sep 19, 2023 Code refactoring in hierarchy. (337600 lines) Version 23.9.1: Sep 19, 2023 Code refactoring in hierarchy and admins. (337521 lines)