From 598311b0bb4238b68e3f4d61d41e3a3f2598b656 Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 1 Dec 2020 09:58:21 +0100 Subject: [PATCH] Version20.7.4 --- swad_changelog.h | 3 ++- swad_forum.c | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 7f602f7cb..e51529e3a 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -555,7 +555,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.7.3 (2020-11-26)" +#define Log_PLATFORM_VERSION "SWAD 20.7.4 (2020-12-01)" #define CSS_FILE "swad20.1.1.css" #define JS_FILE "swad20.6.2.js" /* @@ -602,6 +602,7 @@ Juan Miguel. TODO: Fix bug: un profesor editor no puede ver las carpetas de TFG (proyectos) de otros. Debería poder. TODO: DNI de un estudiante sale erróneamente como ******* en lugar de mostrarse al ver los accesos de un estudiante a la asignatura. + Version 20.7.4: Dec 01, 2020 Fixed bug in pagination of forums of a thread. Reported by Javier Fernández Baldomero. (304705 lines) Version 20.7.3: Nov 26, 2020 Fixed bugs in pagination when editing assignments. (304706 lines) Version 20.7.2: Nov 25, 2020 Changes in edition of matches. (304690 lines) Version 20.7.1: Nov 25, 2020 New file extension .ipynb, suggested by Pedro A. García Sánchez. (304688 lines) diff --git a/swad_forum.c b/swad_forum.c index 496ada9ec..89b33cc59 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -3322,10 +3322,7 @@ static void For_ListForumThrs (struct For_Forums *Forums, /***** Initialize structure with user's data *****/ Usr_UsrDataConstructor (&UsrDat); - /***** Initialize forums context *****/ - Forums->CurrentPagePsts = 1; // Page of posts = first - Forums->PstCod = -1L; - + /***** List threads *****/ for (NumThr = PaginationThrs->FirstItemVisible, NumThrInScreen = 0, UniqueId = 0, Gbl.RowEvenOdd = 0; NumThr <= PaginationThrs->LastItemVisible; NumThr++, NumThrInScreen++, Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd) @@ -3377,7 +3374,7 @@ static void For_ListForumThrs (struct For_Forums *Forums, Frm_StartFormAnchor (For_ActionsCutThrFor[Forums->Forum.Type], For_FORUM_THREADS_SECTION_ID); For_PutAllHiddenParamsForum (Forums->CurrentPageThrs, // Page of threads = current - 1, // Page of posts = first + 1, // Page of posts = first Forums->ForumSet, Forums->ThreadsOrder, Forums->Forum.Location,