From 51b14b72c64367f266340571ad29fb32c5cc8041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Fri, 28 Oct 2016 00:30:18 +0200 Subject: [PATCH] Version 16.45.8 --- swad_changelog.h | 3 ++- swad_country.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/swad_changelog.h b/swad_changelog.h index 77732d66..4573a327 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -154,13 +154,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.45.7 (2016-10-28)" +#define Log_PLATFORM_VERSION "SWAD 16.45.8 (2016-10-28)" #define CSS_FILE "swad16.32.1.css" #define JS_FILE "swad15.238.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.45.8: Oct 28, 2016 Remove surveys of a country when removing it. (205930 lines) Version 16.45.7: Oct 28, 2016 Remove forums and surveys of an institution when removing it. (205927 lines) Version 16.45.6: Oct 28, 2016 Remove forums and surveys of a centre when removing it. (205922 lines) Version 16.45.5: Oct 28, 2016 Code refactoring in forums. (205919 lines) diff --git a/swad_country.c b/swad_country.c index 1cbb3a9b..3451f77d 100644 --- a/swad_country.c +++ b/swad_country.c @@ -1573,6 +1573,9 @@ void Cty_RemoveCountry (void) Lay_ShowAlert (Lay_WARNING,Txt_You_can_not_remove_a_country_with_institutions_or_users); else // Country has no users ==> remove it { + /***** Remove surveys of the country *****/ + Svy_RemoveSurveys (Sco_SCOPE_CTY,Cty.CtyCod); + /***** Remove country *****/ sprintf (Query,"DELETE FROM countries WHERE CtyCod='%03ld'", Cty.CtyCod);