MDL-63773 assignfeedback_comments: switch instance form to hideIf
authorDavo Smith <davo.smith@synergy-learning.com>
Wed, 13 Dec 2017 16:40:56 +0000 (16:40 +0000)
committerDavo Smith <davo.smith@synergy-learning.com>
Thu, 6 Dec 2018 13:31:45 +0000 (13:31 +0000)
mod/assign/feedback/comments/locallib.php

index 2b8e28b..07c83bc 100644 (file)
@@ -259,7 +259,7 @@ class assign_feedback_comments extends assign_feedback_plugin {
         $mform->addHelpButton('assignfeedback_comments_commentinline', 'commentinline', 'assignfeedback_comments');
         $mform->setDefault('assignfeedback_comments_commentinline', $default);
         // Disable comment online if comment feedback plugin is disabled.
-        $mform->disabledIf('assignfeedback_comments_commentinline', 'assignfeedback_comments_enabled', 'notchecked');
+        $mform->hideIf('assignfeedback_comments_commentinline', 'assignfeedback_comments_enabled', 'notchecked');
    }
 
     /**