Skip to content

Commit 3cd2116

Browse files
committed
Issue #134: remove completionpassgrade from settings
1 parent 0deccfb commit 3cd2116

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mod_form.php

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ protected function definition() {
5959
// Footer.
6060
$this->standard_coursemodule_elements();
6161
$this->add_action_buttons();
62+
63+
// Observations don't have a grade to pass setting, so remove this element.
64+
if ($mform->elementExists('completionpassgrade')) {
65+
$mform->removeElement('completionpassgrade');
66+
}
6267
}
6368

6469
/**

0 commit comments

Comments
 (0)