From 64e2fc804af80bbcf6cdf019142ab5b13fc80da4 Mon Sep 17 00:00:00 2001 From: acanas Date: Mon, 1 Mar 2021 15:35:10 +0100 Subject: [PATCH] Version 20.36.46: Mar 01, 2021 Fixed bugs in timeline. --- swad_changelog.h | 3 ++- swad_timeline_database.c | 2 +- swad_timeline_favourite.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 3a64ba57c..8a4034313 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -553,7 +553,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 20.36.45 (2021-03-01)" +#define Log_PLATFORM_VERSION "SWAD 20.36.46 (2021-03-01)" #define CSS_FILE "swad20.33.9.css" #define JS_FILE "swad20.6.2.js" /* @@ -601,6 +601,7 @@ TODO: DNI de un estudiante sale err TODO: BUG: Cuando un tipo de grupo sólo tiene un grupo, inscribirse es voluntario, el estudiante sólo puede pertenecer a un grupo, y se inscribe en él, debería poder desapuntarse. Ahora no puede. TODO: Salvador Romero Cortés: @acanas opción para editar posts + Version 20.36.46: Mar 01, 2021 Fixed bugs in timeline. (305529 lines) Version 20.36.45: Mar 01, 2021 Queries moved to module swad_timeline_database. (305528 lines) Version 20.36.44: Mar 01, 2021 Query moved to module swad_timeline_database. (305516 lines) Version 20.36.43: Mar 01, 2021 Query moved to module swad_timeline_database. (305489 lines) diff --git a/swad_timeline_database.c b/swad_timeline_database.c index ce4d871ed..57c1da392 100644 --- a/swad_timeline_database.c +++ b/swad_timeline_database.c @@ -991,7 +991,7 @@ bool TL_DB_CheckIfFavedByUsr (TL_Fav_WhatToFav_t WhatToFav, /***** Check if a user has favourited a note/comment from database *****/ return (DB_QueryCOUNT ("can not check if a user has favourited", "SELECT COUNT(*) FROM %s" - " WHERE PubCod=%ld AND UsrCod=%ld", + " WHERE %s=%ld AND UsrCod=%ld", TL_DB_Table[WhatToFav], TL_DB_Field[WhatToFav],Cod,UsrCod) != 0); } diff --git a/swad_timeline_favourite.c b/swad_timeline_favourite.c index d0cad7790..c3b729481 100644 --- a/swad_timeline_favourite.c +++ b/swad_timeline_favourite.c @@ -299,7 +299,7 @@ void TL_Fav_PutIconToFavUnfComment (const struct TL_Com_Comment *Com, HTM_DIV_End (); /***** Show who have marked this comment as favourite *****/ - TL_Fav_ShowUsrsWhoHaveMarkedAsFav (TL_Fav_NOTE, + TL_Fav_ShowUsrsWhoHaveMarkedAsFav (TL_Fav_COMM, Com->PubCod,Com->UsrCod,Com->NumFavs, HowManyUsrs); }