Permalink
Browse files

MDL-32901: Default feedback plugin for gradebook was using incorrect …

…component name

This fix allows this setting to be set to the default correctly and prevents it showing on the
front page settings screen for a new install.
  • Loading branch information...
1 parent 3388649 commit 755bfecae96a2ee30781da472a6a860d87a6e95d Damyon Wiese committed May 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/assign/settings.php
View
@@ -40,6 +40,7 @@
assign_plugin_manager::add_admin_assign_plugin_settings('assignfeedback', $ADMIN, $settings, $module);
if ($ADMIN->fulltree) {
+ $menu = array();
foreach (get_plugin_list('assignfeedback') as $type => $notused) {
$visible = !get_config('assignfeedback_' . $type, 'disabled');
if ($visible) {
@@ -50,7 +51,7 @@
// The default here is feedback_comments (if it exists)
$settings->add(new admin_setting_configselect('assign/feedback_plugin_for_gradebook',
new lang_string('feedbackpluginforgradebook', 'mod_assign'),
- new lang_string('feedbackplugin', 'mod_assign'), 'feedback_comments', $menu));
+ new lang_string('feedbackplugin', 'mod_assign'), 'assignfeedback_comments', $menu));
$settings->add(new admin_setting_configcheckbox('assign/showrecentsubmissions',
new lang_string('showrecentsubmissions', 'assign'),
new lang_string('configshowrecentsubmissions', 'assign'), 0));

0 comments on commit 755bfec

Please sign in to comment.