Version 16.45.8

This commit is contained in:
Antonio Cañas Vargas 2016-10-28 00:30:18 +02:00
parent 88770a7af6
commit 51b14b72c6
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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);