MDL-38852 repository_merloy: fix missing setType calls

This commit is contained in:
Dan Poltawski 2013-04-03 10:50:44 +08:00
parent 13eeb23cc2
commit 98328cf646

View File

@ -147,6 +147,7 @@ class repository_merlot extends repository {
}
$strrequired = get_string('required');
$mform->addElement('text', 'licensekey', get_string('licensekey', 'repository_merlot'), array('value'=>$licensekey,'size' => '40'));
$mform->setType('licensekey', PARAM_RAW_TRIMMED);
$mform->addRule('licensekey', $strrequired, 'required', null, 'client');
}