All Logs - graph problem

All Logs - graph problem

- Jose Fernandes の投稿
返信数: 5

Hi!

In a student's profile, when we clic "All Logs", a graph is displayed with the number of "accesses".

This graph presents the data in an unfortunate way, always placing the number of real accesses of a student, in the previous day.

It doesn't seem to make sense, but it happens in several versions of Moodle and has never been changed.

You can see here (in attachment), a simple example. We have Moodle 3.9.1 with Academi Theme.

The user in question accessed on 5th November and the chart shows  4th. If I click on "show data from the chart", the error is the same...

What can we do to correct this issue?

Thanks!

Jose

添付 Moodle391Academi_EN.jpg
Jose Fernandes への返信

Re: All Logs - graph problem

- Hugo Ribeiro の投稿
画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
I get the same behaviour. It seems https://tracker.moodle.org/browse/MDL-58991 again. Maybe some regression?
Hugo Ribeiro への返信

Re: All Logs - graph problem

- John Provasnik の投稿
画像 Particularly helpful Moodlers 画像 Testers
Jose Fernandes への返信

Re: All Logs - graph problem

- Jose Fernandes の投稿
I think the solution might be here:

moodle \ report \ log \ locallib.php

That's where the report_log_print_graph function is, among others.

Someone to help on code change?