From 40c4477b23b08d20a36ea2068a8fd82edf99b47a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 19 Apr 2011 18:50:23 +0000 Subject: [PATCH] finetuning history log display for custom fields --- etemplate/inc/class.historylog_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.historylog_widget.inc.php b/etemplate/inc/class.historylog_widget.inc.php index 2fce5a0bdd..3667dd30a9 100644 --- a/etemplate/inc/class.historylog_widget.inc.php +++ b/etemplate/inc/class.historylog_widget.inc.php @@ -164,9 +164,9 @@ class historylog_widget } if (isset($status_widgets['#'.$cf_name])) continue; // app set a status widget --> use that - if(!is_array($cf_data['values'])) + if(!is_array($cf_data['values']) || !$cf_data['values']) { - $status_widgets['#'.$cf_name] = $cf_data['type']; + $status_widgets['#'.$cf_name] = $cf_data['type'] != 'text' ? $cf_data['type'] : 'label'; } elseif($cf_data['values']['@']) {