Version19.4.2

This commit is contained in:
Antonio Cañas Vargas 2019-09-17 08:50:20 +02:00
parent fbb0f13fb1
commit 2ca71e4120
2 changed files with 7 additions and 3 deletions

View File

@ -464,10 +464,11 @@ can not remove the groups associated to matches of a game
Type of answer not valid in a game.
*/
#define Log_PLATFORM_VERSION "SWAD 19.4.1 (2019-09-17)"
#define Log_PLATFORM_VERSION "SWAD 19.4.2 (2019-09-17)"
#define CSS_FILE "swad19.3.css"
#define JS_FILE "swad18.130.2.js"
/*
Version 19.4.2: Sep 17, 2019 Fixed bug when removing a question in a game. (244654 lines)
Version 19.4.1: Sep 17, 2019 Fixed bug when removing a question in a game. (244650 lines)
Version 19.4: Sep 17, 2019 Changes in games ans matches tables. (244644 lines)
8 changes necessary in database:

View File

@ -2067,8 +2067,11 @@ void Gam_RemoveQst (void)
/* Change index of questions greater than this */
DB_QueryUPDATE ("can not update indexes of questions in table of answers",
"UPDATE mch_answers SET QstInd=QstInd-1"
" WHERE GamCod=%ld AND QstInd>%u",
"UPDATE mch_answers,mch_matches"
" SET mch_answers.QstInd=mch_answers.QstInd-1"
" WHERE mch_matches.GamCod=%ld"
" WHERE mch_matches.MchCod=mch_answers.MchCod"
" AND mch_answers.QstInd>%u",
Game.GamCod,QstInd);
DB_QueryUPDATE ("can not update indexes of questions",
"UPDATE gam_questions SET QstInd=QstInd-1"