Commit 8ffc94ff authored by Damyon Wiese's avatar Damyon Wiese
Browse files

MDL-51686 assign: Apply admin default for comment inline

parent 6d8dbfee
......@@ -212,6 +212,10 @@ class assign_feedback_comments extends assign_feedback_plugin {
*/
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'));
......
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