Version 18.27.9

This commit is contained in:
Antonio Cañas Vargas 2019-01-05 11:39:42 +01:00
parent 267af87d3c
commit 2549a8708d
3 changed files with 9 additions and 2 deletions

View File

@ -364,10 +364,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 18.27.8 (2019-01-05)"
#define Log_PLATFORM_VERSION "SWAD 18.27.9 (2019-01-05)"
#define CSS_FILE "swad18.22.css"
#define JS_FILE "swad17.17.1.js"
/*
Version 18.27.9: Jan 05, 2019 When a classroom is removed, if it is assigned to groups, remove the association in groups. (239136 lines)
Version 18.27.8: Jan 05, 2019 Get classroom short name from database in listing of groups. (239130 lines)
Version 18.27.7: Jan 04, 2019 Show classroom in listing of groups. (239121 lines)
Version 18.27.6: Jan 04, 2019 Selection of classroom in form to edit group. (239099 lines)

View File

@ -569,6 +569,12 @@ void Cla_RemoveClassroom (void)
/***** Get data of the classroom from database *****/
Cla_GetDataOfClassroomByCod (Cla);
/***** Update groups assigned to this classroom *****/
DB_QueryUPDATE ("can not update classroom in groups",
"UPDATE crs_grp SET ClaCod=0" // 0 means another classroom
" WHERE ClaCod=%ld",
Cla->ClaCod);
/***** Remove classroom *****/
DB_QueryDELETE ("can not remove a classroom",
"DELETE FROM classrooms WHERE ClaCod=%ld",

View File

@ -2490,7 +2490,7 @@ static void Grp_WriteRowGrp (struct Group *Grp,bool Highlight)
Grp->GrpName);
/***** Classroom *****/
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE");
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE");
if (Highlight)
fprintf (Gbl.F.Out," LIGHT_BLUE");
fprintf (Gbl.F.Out,"\">"