Merge branch 'MDL-81822-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE

This commit is contained in:
Andrew Nicols
2024-05-28 14:05:58 +08:00
2 changed files with 2 additions and 2 deletions
@@ -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');
+1 -1
View File
@@ -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();