MDL-55289 workshop: Fix files processing in example submissions
authorDavid Mudrák <david@moodle.com>
Mon, 25 Jul 2016 17:40:26 +0000 (19:40 +0200)
committerDavid Mudrák <david@moodle.com>
Thu, 28 Jul 2016 07:51:16 +0000 (09:51 +0200)
commit87b5c584fbd4911a55b40a57cae5a2a6f8576df7
tree7c9a3bafe5104efdd4da68feb8c7ee3a531584a1
parent21d49a3f93e24f8dca99c0c339a60cc12eae778c
MDL-55289 workshop: Fix files processing in example submissions

While testing the issue MDL-55289 I realized that attaching files to
workshop example submissions does not work at all and throws an error.

The reason was that in MDL-50794 (996f7e82), the variables $contentopts
and $attachmentopts were replaced with the result of the methods
submission_content_options() and submission_attachment_options().
But I forgot to perform the full refactoring in exsubmission.php too.

Attached behat test should cover both issues on this branch.
mod/workshop/exsubmission.php
mod/workshop/tests/behat/example_submission.feature [new file with mode: 0644]