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

Cannot add question #67

Closed hgeorgsch closed 6 years ago

hgeorgsch commented 6 years ago

The following exception is raised when adding a question on the bug/ID50 branch.

Exception - Argument 3 passed to mod_capquiz\create_capquiz_question() must be of the type float, none given, called in [dirroot]/mod/capquiz/action.php on line 64

More information about this error

hgeorgsch commented 6 years ago

Seems to also fail on the development branch. Debug info: Error code: generalexceptionmessage Stack trace:

line 44 of /mod/capquiz/action.php: TypeError thrown
line 64 of /mod/capquiz/action.php: call to mod_capquiz\create_capquiz_question()
line 122 of /mod/capquiz/action.php: call to mod_capquiz\add_question_to_list()
line 139 of /mod/capquiz/action.php: call to mod_capquiz\determine_action()
line 142 of /mod/capquiz/action.php: call to mod_capquiz\capquiz_action()
hgeorgsch commented 6 years ago

Reproduced both with moodle v3.2 and 3.5.

skrede commented 6 years ago

Is this still valid?

hgeorgsch commented 6 years ago

I think it is solved in the pull request ... so it is valid until the pull request is approved ...