fixed historylog widget to correct display custom fields of type link to application

This commit is contained in:
Ralf Becker 2012-07-31 16:15:27 +00:00
parent 47e6f766ff
commit 0bea53b22d

View File

@ -199,7 +199,14 @@ class historylog_widget
if(!is_array($cf_data['values']) || !$cf_data['values']) if(!is_array($cf_data['values']) || !$cf_data['values'])
{ {
self::$status_widgets['#'.$cf_name] = $cf_data['type'] != 'text' ? $cf_data['type'] : 'label'; if (isset($GLOBALS['egw_info']['apps'][$cf_data['type']]))
{
self::$status_widgets['#'.$cf_name] = 'link-entry:'.$cf_data['type'];
}
else
{
self::$status_widgets['#'.$cf_name] = $cf_data['type'] != 'text' ? $cf_data['type'] : 'label';
}
} }
elseif($cf_data['values']['@']) elseif($cf_data['values']['@'])
{ {