Commit 097fe73b authored by Eloy Lafuente's avatar Eloy Lafuente Committed by Dan Poltawski
Browse files

Merge branch 'MDL-51686-28' of git://github.com/damyon/moodle into MOODLE_28_STABLE

parents b4f7f20a 8ffc94ff
...@@ -212,6 +212,10 @@ class assign_feedback_comments extends assign_feedback_plugin { ...@@ -212,6 +212,10 @@ class assign_feedback_comments extends assign_feedback_plugin {
*/ */
public function get_settings(MoodleQuickForm $mform) { public function get_settings(MoodleQuickForm $mform) {
$default = $this->get_config('commentinline'); $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', $mform->addElement('selectyesno',
'assignfeedback_comments_commentinline', 'assignfeedback_comments_commentinline',
get_string('commentinline', 'assignfeedback_comments')); get_string('commentinline', 'assignfeedback_comments'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment