Project: moodle
Issue MDL-39001: Unenroling and re-enrolling student causes inconsistent grade data
When a student is removed from course, her/his grades in mdl_grade_grades are moved to mdl_grade_grades_history. When the same student is re-enrolled into the course, his grades for the modules re-appear (ie. they are still in mdl_assign_grades etc.), but they are not re-exported back to mdl_grade_grades which serves as a source for evaluation of conditional access. After re-enrolling the student may have the grades required for conditionally available content, but it will not be available to her/him.
Story points: 100