Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-34045 fix invalid idnumber field type in cohort form

  • Loading branch information...
commit 0735b8b5e2a9f4787e114d1fa17108bc09430b86 1 parent 1c84aa8
Petr Škoda authored June 30, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  cohort/edit_form.php
2  cohort/edit_form.php
@@ -49,7 +49,7 @@ public function definition() {
49 49
         $mform->addElement('select', 'contextid', get_string('context', 'role'), $options);
50 50
 
51 51
         $mform->addElement('text', 'idnumber', get_string('idnumber', 'cohort'), 'maxlength="254" size="50"');
52  
-        $mform->setType('name', PARAM_RAW); // idnumbers are plain text, must not be changed
  52
+        $mform->setType('idnumber', PARAM_RAW); // idnumbers are plain text, must not be changed
53 53
 
54 54
         $mform->addElement('editor', 'description_editor', get_string('description', 'cohort'), null, $editoroptions);
55 55
         $mform->setType('description_editor', PARAM_RAW);

0 notes on commit 0735b8b

Please sign in to comment.
Something went wrong with that request. Please try again.