Project: moodle
Issue MDL-45029: Weight Defaults to Zero in Weighted Mean of Grades Aggregation Method
When adding new assignments to new courses, weight of grade in gradebook defaults to zero with the "weighted mean of grades" aggregation method in certain situations. If new assignment is added, and gradebook has been set to "Simple Weighted Mean" then switched to desired "Weighted Mean of Grades" aggregation, default weight will show up as 1.0 as is intended. However, once grading aggregation has been switched to "Weighted Mean of Grades", subsequent assignments added will have a default weight of 0 in the gradebook instead of intended 1.0. Steps to Reproduce: 1. Add new course and save. 2. Go to new course main page, click "Turn on editing" 3. Go to first available week, click "Add an Activity or Resource" 4. Click Assignment and Add 5. Name assignment, add description, click "Save and Return to Course" 6. Click Course Administration
Story points: 20