You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install plugin set, create course, go to course's question bank.
Click Create a new question ..., select Variable numeric set with units and click Add.
Set:
Question name.
Question text.
Answer 1:
1. 15, +/-: 1, Grade: 100%
Unit 1:
1. match('cm')
2. Grade: 100%
Click Save changes.
Expected results
The question is saved.
Actual results
Whoops\Exception\ErrorException thrown with message "Undefined array key "text""
Stacktrace:
#4 Whoops\Exception\ErrorException in /var/www/moodle/question/type/varnumunit/questiontype.php:121
#3 default_error_handler in /var/www/moodle/question/type/varnumunit/questiontype.php:121
#2 qtype_varnumunit:save_units in /var/www/moodle/question/type/varnumunit/questiontype.php:205
#1 qtype_varnumunit:save_question_options in /var/www/moodle/question/type/questiontypebase.php:538
#0 question_type:save_question in /var/www/moodle/question/bank/editquestion/question.php:294
The text was updated successfully, but these errors were encountered:
Steps to reproduce issue
1. 15, +/-: 1, Grade: 100%
1. match('cm')
2. Grade: 100%
Expected results
The question is saved.
Actual results
The text was updated successfully, but these errors were encountered: