-
Task
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
While fixing MDL-84243 I discover the course reactive state has two different attributes for the activity completion:
- cm.isoverallcomplete (boolean): is contains a boolean indicating if the activity is completed
- cm.completionstate (integer): it seems to be the database completion value
I believe the front end may not require both values. I hypothesised that we initially used the completion state because it was quickly retrieved from the database. Still, I later realized it wasn't sufficient, leading us to add the second value instead of replacing it.
This task is about:
- Investigate the origin of both values
- Decide if we can unify them
- If so, create an issue to improve the current implementation.
- Discovered while testing
-
MDL-84243 Toggling activity done doesn't update the course index
-
- Closed
-