finetuning history log display for custom fields

This commit is contained in:
Ralf Becker 2011-04-19 18:50:23 +00:00
parent bbf3778172
commit 40c4477b23

View File

@ -164,9 +164,9 @@ class historylog_widget
} }
if (isset($status_widgets['#'.$cf_name])) continue; // app set a status widget --> use that 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']['@']) elseif($cf_data['values']['@'])
{ {