From 6a169852d7921a864c545c96a2e5f89be87c0343 Mon Sep 17 00:00:00 2001 From: Rossco Hellmans Date: Tue, 25 Jun 2024 16:13:55 +1000 Subject: [PATCH] Issue #134: remove completionpassgrade from settings --- mod_form.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod_form.php b/mod_form.php index ce703a7..826c96f 100644 --- a/mod_form.php +++ b/mod_form.php @@ -59,6 +59,11 @@ protected function definition() { // Footer. $this->standard_coursemodule_elements(); $this->add_action_buttons(); + + // Observations don't have a grade to pass setting, so remove this element. + if ($mform->elementExists('completionpassgrade')) { + $mform->removeElement('completionpassgrade'); + } } /**