Skip to content

Commit

Permalink
MDL-51686 assign: Apply admin default for comment inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Oct 9, 2015
1 parent 6d8dbfe commit 8ffc94f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/assign/feedback/comments/locallib.php
Expand Up @@ -212,6 +212,10 @@ public function save_settings(stdClass $data) {
*/
public function get_settings(MoodleQuickForm $mform) {
$default = $this->get_config('commentinline');
if ($default === false) {
// Apply the admin default if we don't have a value yet.
$default = get_config('assignfeedback_comments', 'inline');
}
$mform->addElement('selectyesno',
'assignfeedback_comments_commentinline',
get_string('commentinline', 'assignfeedback_comments'));
Expand Down

0 comments on commit 8ffc94f

Please sign in to comment.