Skip to content

Commit

Permalink
MDL-40684 Fix conditional field name for custom user fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawhero authored and Sam Hemelryk committed Aug 5, 2013
1 parent f5472d1 commit 0604e03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/conditionlib.php
Expand Up @@ -829,7 +829,11 @@ public function get_full_information($modinfo=null) {
foreach ($this->item->conditionsfield as $field => $details) {
$a = new stdclass;
// Display the fieldname into current lang.
$translatedfieldname = get_user_field_name($details->fieldname);
if (is_numeric($field)) {
$translatedfieldname = $details->fieldname;
} else {
$translatedfieldname = get_user_field_name($details->fieldname);
}
$a->field = format_string($translatedfieldname, true, array('context' => $context));
$a->value = s($details->value);
$information .= html_writer::start_tag('li');
Expand Down

0 comments on commit 0604e03

Please sign in to comment.