From 81f3d7a76c95c3a95e40a8568e954f8e76a483e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Sat, 30 Jun 2012 07:50:38 +0200 Subject: [PATCH] MDL-34045 fix invalid idnumber field type in cohort form --- cohort/edit_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cohort/edit_form.php b/cohort/edit_form.php index 249212c7ae1..d449980f87e 100644 --- a/cohort/edit_form.php +++ b/cohort/edit_form.php @@ -49,7 +49,7 @@ class cohort_edit_form extends moodleform { $mform->addElement('select', 'contextid', get_string('context', 'role'), $options); $mform->addElement('text', 'idnumber', get_string('idnumber', 'cohort'), 'maxlength="254" size="50"'); - $mform->setType('name', PARAM_RAW); // idnumbers are plain text, must not be changed + $mform->setType('idnumber', PARAM_RAW); // idnumbers are plain text, must not be changed $mform->addElement('editor', 'description_editor', get_string('description', 'cohort'), null, $editoroptions); $mform->setType('description_editor', PARAM_RAW);