*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:47:52 +00:00
parent 17a3b1e179
commit 15808d3bc8

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],
);
}
}