MDL-58138 completion: Fixes for a number of small issues.

This commit is contained in:
Jake Dallimore 2017-04-12 11:50:43 +08:00
parent 32b93ea7f8
commit 273d310601
25 changed files with 90 additions and 146 deletions

View file

@ -298,9 +298,9 @@ class mod_forum_mod_form extends moodleform_mod {
*
* Only available on moodleform_mod.
*
* @param stdClass $data passed by reference
* @param stdClass $data the form data to be modified.
*/
public function data_postprocessing(&$data) {
public function data_postprocessing($data) {
parent::data_postprocessing($data);
// Turn off completion settings if the checkboxes aren't ticked
if (!empty($data->completionunlocked)) {