mirror of
https://github.com/acanas/swad-core.git
synced 2024-05-31 22:05:23 +02:00
Version 21.114.1: Jul 25, 2022 Fixed bug removing an item resource.
This commit is contained in:
parent
7ae0917363
commit
267df6a580
|
@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
|
||||||
|
|
||||||
TODO: Attach pdf files in multimedia.
|
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 CSS_FILE "swad21.107.1.css"
|
||||||
#define JS_FILE "swad21.100.js"
|
#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.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.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)
|
Version 21.112.1: Jul 22, 2022 Changes in edition of program items. (329058 lines)
|
||||||
|
|
|
@ -451,7 +451,8 @@ void Prg_DB_UpdateResourceTitle (long RscCod,long ItmCod,
|
||||||
const char NewTitle[PrgRsc_MAX_BYTES_PROGRAM_RESOURCE_TITLE + 1])
|
const char NewTitle[PrgRsc_MAX_BYTES_PROGRAM_RESOURCE_TITLE + 1])
|
||||||
{
|
{
|
||||||
DB_QueryUPDATE ("can not update the title of a resource",
|
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'"
|
" SET prg_resources.Title='%s'"
|
||||||
" WHERE prg_resources.RscCod=%ld"
|
" WHERE prg_resources.RscCod=%ld"
|
||||||
" AND prg_resources.ItmCod=%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.RscInd," // row[2]
|
||||||
"prg_resources.Hidden," // row[3]
|
"prg_resources.Hidden," // row[3]
|
||||||
"prg_resources.Title" // row[4]
|
"prg_resources.Title" // row[4]
|
||||||
" FROM prg_resources,prg_items"
|
" FROM prg_resources,"
|
||||||
|
"prg_items"
|
||||||
" WHERE prg_resources.ItmCod=%ld"
|
" WHERE prg_resources.ItmCod=%ld"
|
||||||
"%s"
|
"%s"
|
||||||
" AND prg_resources.ItmCod=prg_items.ItmCod"
|
" 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.RscInd," // row[2]
|
||||||
"prg_resources.Hidden," // row[3]
|
"prg_resources.Hidden," // row[3]
|
||||||
"prg_resources.Title" // row[4]
|
"prg_resources.Title" // row[4]
|
||||||
" FROM prg_resources,prg_items"
|
" FROM prg_resources,"
|
||||||
|
"prg_items"
|
||||||
" WHERE prg_resources.RscCod=%ld"
|
" WHERE prg_resources.RscCod=%ld"
|
||||||
" AND prg_resources.ItmCod=prg_items.ItmCod"
|
" AND prg_resources.ItmCod=prg_items.ItmCod"
|
||||||
" AND prg_items.CrsCod=%ld", // Extra check
|
" 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.RscInd," // row[2]
|
||||||
"prg_resources.Hidden," // row[3]
|
"prg_resources.Hidden," // row[3]
|
||||||
"prg_resources.Title" // row[4]
|
"prg_resources.Title" // row[4]
|
||||||
" FROM prg_resources,prg_items"
|
" FROM prg_resources,"
|
||||||
|
"prg_items"
|
||||||
" WHERE prg_resources.ItmCod=%ld"
|
" WHERE prg_resources.ItmCod=%ld"
|
||||||
" AND prg_resources.RscInd=%u"
|
" AND prg_resources.RscInd=%u"
|
||||||
" AND prg_resources.ItmCod=prg_items.ItmCod"
|
" 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",
|
DB_QueryDELETE ("can not remove item resource",
|
||||||
"DELETE FROM prg_resources"
|
"DELETE FROM prg_resources"
|
||||||
"USING prg_resources,prg_items"
|
" USING prg_resources,"
|
||||||
|
"prg_items"
|
||||||
" WHERE prg_resources.RscCod=%ld"
|
" WHERE prg_resources.RscCod=%ld"
|
||||||
" AND prg_resources.ItmCod=%ld"
|
" AND prg_resources.ItmCod=%ld"
|
||||||
" AND prg_resources.ItmCod=prg_items.ItmCod"
|
" AND prg_resources.ItmCod=prg_items.ItmCod"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user