Provide proper history widget for Last changed, and stop any more from being logged

This commit is contained in:
Nathan Gray 2011-02-17 00:10:51 +00:00
parent 1ef649b869
commit ebffdf2f53
2 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,6 @@ class infolog_tracking extends bo_tracking
'info_status' => 'St', 'info_status' => 'St',
'info_percent' => 'Pe', 'info_percent' => 'Pe',
'info_datecompleted' => 'Co', 'info_datecompleted' => 'Co',
'info_datemodified' => 'Mo',
'info_location' => 'Lo', 'info_location' => 'Lo',
'info_startdate' => 'st', 'info_startdate' => 'st',
'info_enddate' => 'En', 'info_enddate' => 'En',

View File

@ -1624,6 +1624,7 @@ class infolog_ui
'Pe' => 'select-percent', 'Pe' => 'select-percent',
'Co' => 'date-time', 'Co' => 'date-time',
'st' => 'date-time', 'st' => 'date-time',
'Mo' => 'date-time',
'En' => 'date', 'En' => 'date',
'Re' => 'select-account', 'Re' => 'select-account',
// PM fields, ToDo: access control!!! // PM fields, ToDo: access control!!!
@ -1640,6 +1641,8 @@ class infolog_ui
{ {
$history_stati[$history] = $tracking->field2label[$field]; $history_stati[$history] = $tracking->field2label[$field];
} }
// Modified date removed from field2history, we don't need that in the history
$history_stati['Mo'] = $tracking->field2label['info_datemodified'];
unset($tracking); unset($tracking);
} }
else else