From d0b08a471d21b721a84fcf6ab04ce7f2ec49dac3 Mon Sep 17 00:00:00 2001 From: ralferlebach Date: Fri, 4 Oct 2024 13:43:43 +0200 Subject: [PATCH 1/2] Update mod_form.php --- mod_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod_form.php b/mod_form.php index 2eea475..3917de4 100644 --- a/mod_form.php +++ b/mod_form.php @@ -118,6 +118,7 @@ public function definition() { ]; $mform->addElement('autocomplete', 'participantslist', get_string('mform_select_participantslist', 'mod_adele'), $participantslist, ['multiple' => true]); + $mform->addRule('participantslist', null, 'required', null, 'client'); // Add standard elements. $this->standard_coursemodule_elements(); From ef347b48e15fc8bddb88288ed21fce7e4609fa54 Mon Sep 17 00:00:00 2001 From: ralferlebach Date: Fri, 4 Oct 2024 14:00:35 +0200 Subject: [PATCH 2/2] Update mod_form.php --- mod_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod_form.php b/mod_form.php index 3917de4..f24edb0 100644 --- a/mod_form.php +++ b/mod_form.php @@ -99,6 +99,7 @@ public function definition() { $mform->addElement('autocomplete', 'learningpathid', get_string('mform_select_learningpath', 'mod_adele'), $select, $options); + $mform->addRule('learningpathid', null, 'required', null, 'client'); $views = [ 1 => get_string('mform_options_view_top_level', 'mod_adele'),