learningworks / moodle-block_lw_courses

Moodle block plugin "My Courses"
5 stars 9 forks source link

Using completion, progress bar does not update correctly when an activity/resource is un-marked as being complete #31

Closed rolandsherwood2 closed 6 years ago

rolandsherwood2 commented 6 years ago

Using version 1.4.0 and Moodle 3.5.1, when a student manually marks an activity/resource as complete and later un-marks it (or it is unmarked on their behalf by the teacher) the progress does not update to reflect the removal of the unmarked activity/resource from the total recorded progress percentage:

screen shot 2018-08-06 at 15 02 53

The above screenshot shows how a student has marked several activities as complete within 'Test course' and later un-marked one of them in order to indicate that it is not actually complete. The resulting progress percentage is accurately reflected in Moodle's own myoverview block (40%), but incorrectly in the lw_courses block which continues to show a completion percentage the same as before the activity was unmarked (60%). Note that the cron has run several times before this screenshot was produced.