Skip to content

Commit

Permalink
Ad-hoc DB report: Report name box on edit form should be bigger #506421
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Nov 26, 2021
1 parent 7d7e37a commit 8be504c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public function definition() {
$catdefault = isset($categoryoptions[1]) ? 1 : key($categoryoptions);
$mform->setDefault('categoryid', $catdefault);

$mform->addElement('text', 'displayname', get_string('displayname', 'report_customsql'));
$mform->addElement('text', 'displayname',
get_string('displayname', 'report_customsql'), ['size' => 80]);
$mform->addRule('displayname', get_string('displaynamerequired', 'report_customsql'),
'required', null, 'client');
$mform->setType('displayname', PARAM_TEXT);
Expand Down

0 comments on commit 8be504c

Please sign in to comment.