mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-81822' of https://github.com/paulholden/moodle
This commit is contained in:
commit
8639237c62
@ -77,7 +77,7 @@ class edit_license extends moodleform {
|
||||
$mform = $this->_form;
|
||||
|
||||
$mform->addElement('text', 'shortname', get_string('shortname', 'tool_licensemanager'));
|
||||
$mform->setType('shortname', PARAM_ALPHANUMEXT);
|
||||
$mform->setType('shortname', PARAM_NOTAGS);
|
||||
// Shortname is only editable when user is creating a license.
|
||||
if ($this->action != manager::ACTION_CREATE) {
|
||||
$mform->freeze('shortname');
|
||||
|
@ -29,7 +29,7 @@ require_once($CFG->libdir . '/licenselib.php');
|
||||
require_admin();
|
||||
|
||||
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
|
||||
$license = optional_param('license', '', PARAM_SAFEDIR);
|
||||
$license = optional_param('license', '', PARAM_NOTAGS);
|
||||
|
||||
// Route via the manager.
|
||||
$licensemanager = new \tool_licensemanager\manager();
|
||||
|
Loading…
x
Reference in New Issue
Block a user