MDL-68715 completion: fix form default value for course prerequisites.
authorPaul Holden <paulh@moodle.com>
Mon, 8 Jun 2020 21:39:43 +0000 (22:39 +0100)
committerPaul Holden <paulh@moodle.com>
Tue, 14 Jul 2020 11:46:02 +0000 (12:46 +0100)
commit8acaa4e356a9ea16fb2acc8e104f2f31288a2d99
tree7db0522ced53273e84c0f657cbcdedf18104bb88
parentee23a8cf250ddc9cd7b3f331775daab521c206d5
MDL-68715 completion: fix form default value for course prerequisites.

Adds filtering on the completion criteria form to ensure we are only
selecting actual course instances of this type. Prior to this change
we would also get NULL values from unrelated criteria types.
completion/tests/behat/completion_other_courses.feature [new file with mode: 0644]
course/completion_form.php
lib/db/upgrade.php
version.php