Skip to content

Commit d470465

Browse files
author
Laur0r
authored
Merge pull request #75 from learnweb/feature/automatic-eval-request-improve-adminsettings
changed course category select to autocomplete element in admin settings
2 parents 5b6fd48 + 1e37cec commit d470465

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

classes/admin_form.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,13 @@ protected function definition() {
8585
// Heading Add Category.
8686
$mform->addElement('html', '<h3>' . get_string('hd_user_cat', 'block_evasys_sync') . '</h3>');
8787

88-
// Course category select.
88+
// Course category select (autocomplete).
8989
$name = 'evasys_cc_select';
9090
$title = get_string('settings_cc_select', 'block_evasys_sync');
91-
$mform->addElement('select', $name, $title, $this->getunassignedcats());
91+
$options = array(
92+
'multiple' => false
93+
);
94+
$mform->addElement('autocomplete', $name, $title, $this->getunassignedcats(), $options);
9295

9396
$name = 'evasys_cc_user';
9497
$title = get_string('settings_cc_user', 'block_evasys_sync');

0 commit comments

Comments
 (0)