Bug Fix - #317, timesheet report

- Fixed bug #317 which colored tasks in the 'completed' report according to
  due dates, which are no longer relevant to a completed task (thanks to
  Cory Donnelly).
- Fixed bug that was causing the 'completed' report to sort incorrectly.
This commit is contained in:
Paul Beckingham 2009-11-18 20:29:45 -05:00
parent e319359935
commit 5e905742ad
3 changed files with 15 additions and 4 deletions

View file

@ -460,6 +460,7 @@ int runCustomReport (
std::string column = sortColumn->substr (0, sortColumn->length () - 1);
char direction = (*sortColumn)[sortColumn->length () - 1];
// TODO This code should really be using Att::type.
if (column == "id")
table.sortOn (columnIndex[column],
(direction == '+' ?
@ -473,7 +474,7 @@ int runCustomReport (
Table::descendingPriority));
else if (column == "entry" || column == "start" || column == "due" ||
column == "wait")
column == "wait" || column == "until" || column == "end")
table.sortOn (columnIndex[column],
(direction == '+' ?
Table::ascendingDate :