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

@ -164,9 +164,9 @@ class mod_data_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);
if (!empty($data->completionunlocked)) {
$autocompletion = !empty($data->completion) && $data->completion == COMPLETION_TRACKING_AUTOMATIC;