MDL-38852 repository_merloy: fix missing setType calls
authorDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 02:50:44 +0000 (10:50 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 03:14:01 +0000 (11:14 +0800)
repository/merlot/lib.php

index 187eef5..fcc55af 100644 (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');
     }