mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
f8c8f980c7
It can happen that some grade items with the type 'None' have a max grade different than 0, in which case we would have set a weight for them which is wrong as they must not have any. This patch always ignores the grade items 'None' and 'Text' when calculating the weights and locks the weight UI fields for those items too.