-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
There is a specific situation where the manual completion button is not able to update the course index.
Steps to reproduce:
- Create a course in custom sections with two activities (called ONE and TWO) ad enrol a student
- Enable completion tracking in the course and set the activities completion to manual
- Login as a student and go to the course page
- Mark one activity ONE as done (but leave the TWO undone)
- Refresh the page. This step is important; we want one activity loaded as completed and the other as uncompleted (is the scenario when it fails).
- In the course index:
- Check the activity ONE has a filled circle icon indicating it is completed
- Check the activity TWO has an empty circle,e indicating it is not completed yet
- Mark as done the activity TWO
- The course index element icon changes to a filled circle
- Now undo the completion of activity TWO
- As expected, the course index element changes to an empty circle
- Now undo the completion of activity ONE
- Expected: the course index icon should change to an empty circle because the activity is not completed
- What happens: the course index icon remains full, no matter the completion state.
It looks like the PHP rendering when the activity is completed does not add some vital attributes, and the JS module cannot update the element.
- is duplicated by
-
MDL-84243 Toggling activity done doesn't update the course index
-
- Closed
-