From 5d243ce19533b10b4ef48760640b82331c2c2a49 Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 30 May 2023 13:17:16 +0200 Subject: [PATCH] Version 22.118.8: May 30, 2023 Fixed bugs users. --- swad_ID.c | 9 +++------ swad_account.c | 2 +- swad_changelog.h | 3 ++- swad_mail.c | 3 +-- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/swad_ID.c b/swad_ID.c index a59b9602..1cade4df 100644 --- a/swad_ID.c +++ b/swad_ID.c @@ -458,8 +458,7 @@ void ID_ShowFormChangeMyID (bool IShouldFillInID) Hlp_PROFILE_Account,Box_NOT_CLOSABLE); /***** Show form to change ID *****/ - ID_ShowFormChangeUsrID (Usr_ME, - IShouldFillInID); + ID_ShowFormChangeUsrID (Usr_ME,IShouldFillInID); /***** End box *****/ Box_BoxEnd (); @@ -681,8 +680,7 @@ static void ID_PutParsRemoveOtherID (void *ID) void ID_RemoveMyUsrID (void) { /***** Remove user's ID *****/ - ID_RemoveUsrID (&Gbl.Usrs.Me.UsrDat, - true); // It's me + ID_RemoveUsrID (&Gbl.Usrs.Me.UsrDat,Usr_ME); /***** Update list of IDs *****/ ID_GetListIDsFromUsrCod (&Gbl.Usrs.Me.UsrDat); @@ -778,8 +776,7 @@ static void ID_RemoveUsrID (const struct Usr_Data *UsrDat,Usr_MeOrOther_t MeOrOt void ID_NewMyUsrID (void) { /***** New user's ID *****/ - ID_ChangeUsrID (&Gbl.Usrs.Me.UsrDat, - true); // It's me + ID_ChangeUsrID (&Gbl.Usrs.Me.UsrDat,Usr_ME); /***** Update list of IDs *****/ ID_GetListIDsFromUsrCod (&Gbl.Usrs.Me.UsrDat); diff --git a/swad_account.c b/swad_account.c index cdfb0dfd..ca0f461b 100644 --- a/swad_account.c +++ b/swad_account.c @@ -961,7 +961,7 @@ void Acc_RemoveMyAccount (void) Msg_DB_MoveUnusedMsgsContentToDeleted (); } else - Acc_AskIfRemoveUsrAccount (true); + Acc_AskIfRemoveUsrAccount (Usr_ME); } void Acc_CompletelyEliminateAccount (struct Usr_Data *UsrDat, diff --git a/swad_changelog.h b/swad_changelog.h index 2bf0af49..5e68b46f 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.7 (2023-05-30)" +#define Log_PLATFORM_VERSION "SWAD 22.118.8 (2023-05-30)" #define CSS_FILE "swad22.118.5.css" #define JS_FILE "swad22.49.js" /* + Version 22.118.8: May 30, 2023 Fixed bugs users. (337361 lines) Version 22.118.7: May 30, 2023 Fixed bug in photo processing. Reported by Emilio Alemán Carmona. (337364 lines) 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) diff --git a/swad_mail.c b/swad_mail.c index f701a110..250574b9 100644 --- a/swad_mail.c +++ b/swad_mail.c @@ -1344,8 +1344,7 @@ static void Mai_RemoveEmail (struct Usr_Data *UsrDat) void May_NewMyUsrEmail (void) { /***** Remove user's email *****/ - Mai_ChangeUsrEmail (&Gbl.Usrs.Me.UsrDat, - true); // It's me + Mai_ChangeUsrEmail (&Gbl.Usrs.Me.UsrDat,Usr_ME); /***** Show my account again *****/ Acc_ShowFormChgMyAccount ();