*infolog, notification: allow the values of select fields to show, actually everything that has an array as value-range and the key saved is found in that range will be shown, else the saved key will be displayed

This commit is contained in:
Klaus Leithoff 2010-10-04 14:46:52 +00:00
parent e4ef70dd02
commit 792027ab82

View File

@ -249,7 +249,7 @@ class infolog_tracking extends bo_tracking
}
$details['#'.$name] = array(
'label' => $field['label'],
'value' => $data['#'.$name],
'value' => (is_array($field['values']) && !empty($field['values']) && array_key_exists($data['#'.$name],$field['values']))?$field['values'][$data['#'.$name]] : $data['#'.$name],
);
}
}