From f45f21897cd8b996c5e2de4b68d2d6932e4b28ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sat, 3 Dec 2016 19:34:43 +0100 Subject: [PATCH] Version 16.84.1 --- swad_account.c | 9 ++++++--- swad_changelog.h | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/swad_account.c b/swad_account.c index 7697e8b24..ee4c2a976 100644 --- a/swad_account.c +++ b/swad_account.c @@ -1045,9 +1045,6 @@ void Acc_CompletelyEliminateAccount (struct UsrData *UsrDat, /***** Remove user from table of seen announcements *****/ Ann_RemoveUsrFromSeenAnnouncements (UsrDat->UsrCod); - /***** Remove user's usage reports *****/ - Rep_RemoveUsrUsageReports (UsrDat->UsrCod); - /***** Remove user from table of connected users *****/ sprintf (Query,"DELETE FROM connected WHERE UsrCod='%ld'", UsrDat->UsrCod); @@ -1067,6 +1064,12 @@ void Acc_CompletelyEliminateAccount (struct UsrData *UsrDat, /***** Remove user from table of followers *****/ Fol_RemoveUsrFromUsrFollow (UsrDat->UsrCod); + /***** Remove user's usage reports *****/ + Rep_RemoveUsrUsageReports (UsrDat->UsrCod); + + /***** Remove user's agenda *****/ + Agd_RemoveUsrEvents (UsrDat->UsrCod); + /***** Remove the user from the list of users without photo *****/ Pho_RemoveUsrFromTableClicksWithoutPhoto (UsrDat->UsrCod); diff --git a/swad_changelog.h b/swad_changelog.h index 6845e98a0..e5758254c 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -179,7 +179,6 @@ // TODO: When teacher sees "No hay estudiantes", put a button to add students // TODO: When admin sees "No hay profesores", put a button to add teachers -// TODO: Cuando un alumno (no profesor en ninguna asignatura) vea su agenda, no tienen sentido los candados // TODO: Eliminar agenda de un usuario al eliminarlo completamente // TODO: Sólo horas y minutos en la agenda @@ -187,13 +186,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.84 (2016-12-03)" +#define Log_PLATFORM_VERSION "SWAD 16.84.1 (2016-12-03)" #define CSS_FILE "swad16.82.2.css" #define JS_FILE "swad16.46.1.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 16.84.1: Dec 03, 2016 Remove user's agenda when removing user's account. (? lines) Version 16.84: Dec 03, 2016 Agenda events can be hidden. (209580 lines) 3 changes necessary in database: ALTER TABLE agendas ADD COLUMN Hidden ENUM('N','Y') NOT NULL DEFAULT 'N' AFTER Public;