Permalink
Browse files

MDL-44590 category: correct get_string component

  • Loading branch information...
danpoltawski committed Mar 13, 2014
1 parent 9b8555f commit bd3c9587b7d739058100390ee14969284ada473d
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/classes/editcategory_form.php
@@ -125,10 +125,10 @@ public function validation($data, $files) {
if (!empty($data['idnumber'])) {
if ($existing = $DB->get_record('course_categories', array('idnumber' => $data['idnumber']))) {
if (!$data['id'] || $existing->id != $data['id']) {
$errors['idnumber']= get_string('categoryidnumbertaken');
$errors['idnumber'] = get_string('categoryidnumbertaken', 'error');
}
}
}
return $errors;
}
}
}

0 comments on commit bd3c958

Please sign in to comment.