mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
e319359935
commit
5e905742ad
3 changed files with 15 additions and 4 deletions
|
@ -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 :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue