diff --git a/swad_changelog.h b/swad_changelog.h index 19b149a15..acc555fe5 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate TODO: Attach pdf files in multimedia. */ -#define Log_PLATFORM_VERSION "SWAD 21.114 (2022-07-25)" +#define Log_PLATFORM_VERSION "SWAD 21.114.1 (2022-07-25)" #define CSS_FILE "swad21.107.1.css" #define JS_FILE "swad21.100.js" /* + Version 21.114.1: Jul 25, 2022 Fixed bug removing an item resource. (329264 lines) Version 21.114: Jul 25, 2022 New form and action to create item resource. (329258 lines) Version 21.113: Jul 22, 2022 New form and action to rename item resource. (329151 lines) Version 21.112.1: Jul 22, 2022 Changes in edition of program items. (329058 lines) diff --git a/swad_program_database.c b/swad_program_database.c index e941548a3..2b94e16d5 100644 --- a/swad_program_database.c +++ b/swad_program_database.c @@ -451,7 +451,8 @@ void Prg_DB_UpdateResourceTitle (long RscCod,long ItmCod, const char NewTitle[PrgRsc_MAX_BYTES_PROGRAM_RESOURCE_TITLE + 1]) { DB_QueryUPDATE ("can not update the title of a resource", - "UPDATE prg_resources,prg_items" + "UPDATE prg_resources," + "prg_items" " SET prg_resources.Title='%s'" " WHERE prg_resources.RscCod=%ld" " AND prg_resources.ItmCod=%ld" @@ -483,7 +484,8 @@ unsigned Prg_DB_GetListResources (MYSQL_RES **mysql_res,long ItmCod, "prg_resources.RscInd," // row[2] "prg_resources.Hidden," // row[3] "prg_resources.Title" // row[4] - " FROM prg_resources,prg_items" + " FROM prg_resources," + "prg_items" " WHERE prg_resources.ItmCod=%ld" "%s" " AND prg_resources.ItmCod=prg_items.ItmCod" @@ -507,7 +509,8 @@ unsigned Prg_DB_GetDataOfResourceByCod (MYSQL_RES **mysql_res,long RscCod) "prg_resources.RscInd," // row[2] "prg_resources.Hidden," // row[3] "prg_resources.Title" // row[4] - " FROM prg_resources,prg_items" + " FROM prg_resources," + "prg_items" " WHERE prg_resources.RscCod=%ld" " AND prg_resources.ItmCod=prg_items.ItmCod" " AND prg_items.CrsCod=%ld", // Extra check @@ -529,7 +532,8 @@ unsigned Prg_DB_GetDataOfResourceByInd (MYSQL_RES **mysql_res, "prg_resources.RscInd," // row[2] "prg_resources.Hidden," // row[3] "prg_resources.Title" // row[4] - " FROM prg_resources,prg_items" + " FROM prg_resources," + "prg_items" " WHERE prg_resources.ItmCod=%ld" " AND prg_resources.RscInd=%u" " AND prg_resources.ItmCod=prg_items.ItmCod" @@ -606,7 +610,8 @@ void Prg_DB_RemoveResource (const struct PrgRsc_Resource *Resource) { DB_QueryDELETE ("can not remove item resource", "DELETE FROM prg_resources" - "USING prg_resources,prg_items" + " USING prg_resources," + "prg_items" " WHERE prg_resources.RscCod=%ld" " AND prg_resources.ItmCod=%ld" " AND prg_resources.ItmCod=prg_items.ItmCod"