MDL-76298 drag-drop questions: validate the questions are complete
commitb920f2b0d193a76ca9f5334c40321cdcda052a85
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 20 Feb 2023 17:32:35 +0000 (20 17:32 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 22 Feb 2023 12:03:09 +0000 (22 12:03 +0000)
tree6f3ebeb03e9fe81eb094045c5f2b41eaadd33b54
parent8503f2cfd8454baaebaae927ccc3ce8edb8ef369
MDL-76298 drag-drop questions: validate the questions are complete

Previously, it was possible to create drag-drop markers and onto image
questions without any drag items or drop zones. This was non-sensical,
and broke statistics calculations.

So, missing validation added, and random guess score calculation made
robust.
question/type/ddimageortext/edit_ddimageortext_form.php
question/type/ddimageortext/lang/en/qtype_ddimageortext.php
question/type/ddimageortext/questionbase.php
question/type/ddimageortext/tests/behat/add.feature
question/type/ddimageortext/tests/form/edit_form_test.php
question/type/ddimageortext/tests/question_test.php
question/type/ddmarker/edit_ddmarker_form.php
question/type/ddmarker/lang/en/qtype_ddmarker.php
question/type/ddmarker/tests/behat/add.feature