From 792027ab8252b208323aded0d9bf8151034d0bba Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 4 Oct 2010 14:46:52 +0000 Subject: [PATCH] *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 --- infolog/inc/class.infolog_tracking.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_tracking.inc.php b/infolog/inc/class.infolog_tracking.inc.php index acb94dafd7..12c5b8a7c1 100644 --- a/infolog/inc/class.infolog_tracking.inc.php +++ b/infolog/inc/class.infolog_tracking.inc.php @@ -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], ); } }