MDL-38852 repository_alfresco: fix missing setType calls

This commit is contained in:
Dan Poltawski 2013-04-03 10:38:48 +08:00
parent 8fb59b10fc
commit 88ded989f9

View File

@ -274,6 +274,7 @@ class repository_alfresco extends repository {
return false;
}
$mform->addElement('text', 'alfresco_url', get_string('alfresco_url', 'repository_alfresco'), array('size' => '40'));
$mform->setType('alfresco_url', PARAM_URL);
$mform->addElement('static', 'alfreco_url_intro', '', get_string('alfrescourltext', 'repository_alfresco'));
$mform->addRule('alfresco_url', get_string('required'), 'required', null, 'client');
return true;