-
Bug
-
Resolution: Fixed
-
Major
-
2.2.5, 2.3.4, 2.4.1, 2.5
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MDL-36380-master -
When viewing the report statistics for greater then 7 months (ie when only the first of each month is shown) almost all months are duplicated with statistics of zero.
Images attached show the stats and the graph pre and post the patch being applied.
I have traced the issue and it seems to be coming from the function: stats_fix_zeros()
It occurs because the times in the parameter $stat are normalised however the newly generated times are not normalised. By normalising the new times the same way everything appears properly.
My commit can be found here: https://github.com/mdikih/moodle/commit/d5fd7d8eb4770524e20f782f52b4ed146aa3b217
This issue has been reported before in 2008 affecting 1.9. Since this fix is for 2.2 I have created a new ticket.
http://tracker.moodle.org/browse/MDL-17813
http://tracker.moodle.org/browse/MDL-19838
- duplicates
-
MDL-19838 Monthly stats report generates a row of zeros with a row of correct stats for any report type
- Closed
-
MDL-17813 Viewing course/report/statistics over 6 months give inaccurate results
- Closed
- has a non-specific relationship to
-
MDL-13192 stats cleanup - meta
- Closed
- has been marked as being related by
-
MDL-41107 duplicated row in statistics with just zeros
- Closed
- is duplicated by
-
MDL-35006 E_STRICT problem in stats
- Closed
- will help resolve
-
MDL-12031 After switch from daylight savings to standard time, course>partcipants>activity reports>all logs: graph of hits on course by user shows two Sundays and log entries are shown under wrong day.
- Closed