From 0fcced8886dda4ab03eac0b2a61fce7d4fda11cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Jacquet?= Date: Sat, 17 Feb 2024 18:15:42 +0100 Subject: [PATCH] Fix only requested modname logic --- CHANGES.md | 1 + modules/School_Setup/AccessLog.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a9245bf09..2cb22f2cf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ Changes in 11.4.3 ----------------- - Fix SQL update gradebook_assignment_types only for old teacher's assignments in Courses.fnc.php - Fix SQL Get all assignment types having assignments for this course period in GradebookBreakdown.php, Assignments.php, Grades.php & Courses.fnc.php +- Fix only requested modname logic in AccessLog.php Changes in 11.4.2 ----------------- diff --git a/modules/School_Setup/AccessLog.php b/modules/School_Setup/AccessLog.php index 39b708acd..ff8f62c30 100644 --- a/modules/School_Setup/AccessLog.php +++ b/modules/School_Setup/AccessLog.php @@ -37,7 +37,8 @@ } } -if ( count( $_REQUEST ) === 1 ) +if ( count( $_REQUEST ) === 3 + && ! $_REQUEST['modfunc'] ) { // Only requested modname. // @since 11.4 Automatically clear Access Log entries older than one year