mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
webservice MDL-21351 add function page: use multiple searchable selector
This commit is contained in:
parent
c59a67ab40
commit
3a17a7a352
4 changed files with 11 additions and 15 deletions
|
@ -36,10 +36,6 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_select{
|
|||
|
||||
|
||||
function MoodleQuickForm_searchableselector($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
|
||||
//return exception if the selector is set as multiple (TODO: implement multiple support)
|
||||
if (!empty($attributes) && key_exists('multiple', $attributes)) {
|
||||
throw new moodle_exception('searchableselectorcannotbemultiple');
|
||||
}
|
||||
//set size default to 12
|
||||
if (empty($attributes) || empty($attributes['size'])) {
|
||||
$attributes['size'] = 12;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue