Version18.135.5

This commit is contained in:
Antonio Cañas Vargas 2019-07-17 21:47:17 +02:00
parent 35587c9950
commit 03cef107c6
3 changed files with 13 additions and 2 deletions

View File

@ -458,10 +458,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf ps2pdf source.ps destination.pdf
*/ */
#define Log_PLATFORM_VERSION "SWAD 18.135.4 (2019-07-17)" #define Log_PLATFORM_VERSION "SWAD 18.135.5 (2019-07-17)"
#define CSS_FILE "swad18.132.2.css" #define CSS_FILE "swad18.132.2.css"
#define JS_FILE "swad18.130.2.js" #define JS_FILE "swad18.130.2.js"
/* /*
Version 18.135.5: Jul 17, 2019 Changes while removing a match. (243692 lines)
Version 18.135.4: Jul 17, 2019 Changes and bug fixing while removing a match. (243682 lines) Version 18.135.4: Jul 17, 2019 Changes and bug fixing while removing a match. (243682 lines)
Version 18.135.3: Jul 17, 2019 Removed unused code in games. Version 18.135.3: Jul 17, 2019 Removed unused code in games.
Optimization in match buttons. (243668 lines) Optimization in match buttons. (243668 lines)

View File

@ -3096,6 +3096,16 @@ void Gam_RemoveMatchTch (void)
" AND games.CrsCod=%ld", // Extra check " AND games.CrsCod=%ld", // Extra check
Match.MchCod,Gbl.Hierarchy.Crs.CrsCod); Match.MchCod,Gbl.Hierarchy.Crs.CrsCod);
/* Remove students' answers to match */
DB_QueryDELETE ("can not remove students' answers associated to a match",
"DELETE FROM gam_answers"
" USING gam_answers,gam_matches,games"
" WHERE gam_answers.MchCod=%ld"
" AND gam_answers.MchCod=gam_matches.MchCod"
" AND gam_matches.GamCod=games.GamCod"
" AND games.CrsCod=%ld", // Extra check
Match.MchCod,Gbl.Hierarchy.Crs.CrsCod);
/* Remove groups associated to the match */ /* Remove groups associated to the match */
DB_QueryDELETE ("can not remove the groups associated to a match", DB_QueryDELETE ("can not remove the groups associated to a match",
"DELETE FROM gam_grp" "DELETE FROM gam_grp"