nicusX/moodle-mod_attendanceregister — Issue #5: Recalculate online Sessions on deleted Log entries
Author: nicusX
Created: 2012-02-15 11:27:18+00:00
State: open
Labels: BUG

If Log old entries are deleted, the Force Recalculate will delete information about old Sessions that cannot be recalculated.
=> On Recalculate, delete (online) Sessions only up to the older existing Log entry.

A perfect implementation should first find the older Log entry in any of the Tracked Courses for each Tracked User.
This could be very expensive.
As Log entries are usually deleted on time basis (not per-User/per-Course), the check may consider just the older Log Entry currently existing in the database.