KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

No validation for the number of stars required for passing grade #172

Open nicolopinci opened 4 years ago

nicolopinci commented 4 years ago

Describe the bug It is possible to set any number of stars required for passing grade.

To Reproduce Go in the grading tab for a CAPQUIZ topic and try to set the number of required stars to a value greater than 5.

Expected behavior The number should be limited in the range 0 to 5.

andstor commented 4 years ago

I can confirm that it is indeed possible to set the Number of stars required for passing grade to a number higher than the number of stars defined within the activity.

A restriction should be added to limit the Number of stars required for passing grade to be lower than or equal to the number of stars defined in the activity.