Skip to content

Commit

Permalink
Merge branch 'MDL-61205_m35v1' of git://github.com/sbourget/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 15, 2018
2 parents a7db60d + dccd954 commit 110965a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion completion/classes/edit_base_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function definition() {
}

// Completion expected at particular date? (For progress tracking).
$mform->addElement('date_selector', 'completionexpected',
$mform->addElement('date_time_selector', 'completionexpected',
get_string('completionexpected', 'completion'), ['optional' => true]);
$mform->addHelpButton('completionexpected', 'completionexpected', 'completion');
$mform->disabledIf('completionexpected', 'completion', 'eq', COMPLETION_TRACKING_NONE);
Expand Down
3 changes: 2 additions & 1 deletion course/moodleform_mod.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@ function standard_coursemodule_elements(){
}

// Completion expected at particular date? (For progress tracking)
$mform->addElement('date_selector', 'completionexpected', get_string('completionexpected', 'completion'), array('optional'=>true));
$mform->addElement('date_time_selector', 'completionexpected', get_string('completionexpected', 'completion'),
array('optional' => true));
$mform->addHelpButton('completionexpected', 'completionexpected', 'completion');
$mform->disabledIf('completionexpected', 'completion', 'eq', COMPLETION_TRACKING_NONE);
}
Expand Down

0 comments on commit 110965a

Please sign in to comment.