Details
Description
The activities_due indicator calls the calendar API passing the $sampleid, this is fine when $sampleid is a userid, but not when $sampleid is a user enrolment. To call the method with $user->id where $user = $this->retrieve('user', $sampleid); is enough to fix the problem.