* ProjectManager/InfoLog: fixed custom type icon in PM to use status label, as in InfoLog

This commit is contained in:
Ralf Becker 2012-05-08 16:10:52 +00:00
parent 4a4c42ff73
commit bd6a718ed6
2 changed files with 4 additions and 1 deletions

View File

@ -1383,6 +1383,8 @@ class infolog_bo
{ {
if ($status && substr($status,-1) != '%') if ($status && substr($status,-1) != '%')
{ {
list($type,$status) = explode('-', $status);
$status = $this->status[$type][$status];
$icons[$id] = 'infolog/'.$status; $icons[$id] = 'infolog/'.$status;
} }
} }

View File

@ -425,7 +425,8 @@ class infolog_so
$status = 'will-call'; $status = 'will-call';
break; break;
default: default:
$status = $info['info_status'] == 'ongoing' ? $info['info_percent'].'%' : $info['info_status']; $status = $info['info_status'] == 'ongoing' ? $info['info_percent'].'%' :
$info['info_type'].'-'.$info['info_status'];
} }
$stati[$info['info_id']] = $status; $stati[$info['info_id']] = $status;
} }