Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'w19_MDL-31691_m21_cohortidnumber' of git://github.com/s…

…kodak/moodle into MOODLE_21_STABLE
  • Loading branch information...
commit ad520779df8284958195494b23b12ec1c7387741 2 parents 3a6dc00 + b8f242d
@danpoltawski danpoltawski authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  cohort/edit_form.php
  2. +1 −1  cohort/index.php
View
2  cohort/edit_form.php
@@ -49,7 +49,7 @@ public function definition() {
$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);
+ $mform->setType('name', 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);
View
2  cohort/index.php
@@ -76,7 +76,7 @@
foreach($cohorts as $cohort) {
$line = array();
$line[] = format_string($cohort->name);
- $line[] = $cohort->idnumber;
+ $line[] = s($cohort->idnumber); // plain text
$line[] = format_text($cohort->description, $cohort->descriptionformat);
$line[] = $DB->count_records('cohort_members', array('cohortid'=>$cohort->id));
Please sign in to comment.
Something went wrong with that request. Please try again.