Course Completed Date not updating
-
I’ve run into an issue where, when a user completes the last lesson of a course (thus completing the course), the course does not update to show the correct completed date under Learner Management. Instead, it displays the value from Date Started.
I’ve tried this with both bulk imported users and users that have individually registered for the course, with the same result for both. I’ve found that if I change line 1954 in includes/class-sensei-utils.php from
'keep_time' => true,
to
'keep_time' => false,
the Completed Date updates correctly (it appears that the $status variable for the course is coming through as ‘completed’ when the update fires instead of being ‘in-progress’ and updating to ‘completed’, which would in turn correctly update the timestamp), but I have no idea what this could potentially break elsewhere in the plugin.
- The topic ‘Course Completed Date not updating’ is closed to new replies.