diff --git a/swad_changelog.h b/swad_changelog.h index a42875951..78a74ade5 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -487,14 +487,14 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.44 (2019-10-25)" +#define Log_PLATFORM_VERSION "SWAD 19.44.1 (2019-10-26)" #define CSS_FILE "swad19.42.6.css" #define JS_FILE "swad19.39.js" /* // TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.) // TODO: Impedir la creación y edición de proyectos si no son editables. -// TODO: Eliminar asignatura de prj_config al eliminar una asignatura. + Version 19.44.1: Oct 26, 2019 Remove course from project configuration when removing course. (246284 lines) Version 19.44: Oct 25, 2019 Configuration of all projects. Changed preassigned (projects) to assigned in database and messages. (246280 lines) 3/4 changes necessary in database: diff --git a/swad_project.c b/swad_project.c index 4dbe614a5..d7992d3cf 100644 --- a/swad_project.c +++ b/swad_project.c @@ -4170,6 +4170,11 @@ void Prj_RemoveCrsProjects (long CrsCod) /***** Flush cache *****/ Prj_FlushCacheMyRolesInProject (); + /***** Remove configuration of projects in the course *****/ + DB_QueryDELETE ("can not remove configuration of projects of a course", + "DELETE FROM prj_config WHERE CrsCod=%ld", + CrsCod); + /***** Remove projects *****/ DB_QueryDELETE ("can not remove all the projects of a course", "DELETE FROM projects WHERE CrsCod=%ld",