Skip to content

Commit

Permalink
MED-48: Use autocomplete for Streamio on create form
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed Jan 23, 2024
1 parent 4b27220 commit 8617f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/streamio/classes/form/edit_resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ public function definition_after_data() {
}

$mform->insertElementBefore(
$mform->createElement('select', 'file', '', $options),
$mform->createElement('autocomplete', 'file', '', $options),
'description'
);
$mform->disabledIf('file', 'newfile', 'eq', 1);
$mform->hideIf('file', 'newfile', 'eq', 1);
$mform->setDefault('newfile', 1);
} else if (has_capability('mediatimesrc/streamio:upload', context_system::instance())) {
$mform->removeElement('filesource');
Expand Down

0 comments on commit 8617f3c

Please sign in to comment.