- Sorting bug in which 'urgency' column was not identified as numeric.
This commit is contained in:
Paul Beckingham 2010-12-31 00:34:23 -05:00
parent 57d577a140
commit 08f32cb9e9
2 changed files with 3 additions and 2 deletions

View file

@ -550,7 +550,7 @@ int handleCustomReport (const std::string& report, std::string& outs)
int row = 0;
foreach (task, tasks)
{
std::string value = format (task->urgency (), 1, 3);
std::string value = format (task->urgency (), 4, 3);
context.hooks.trigger ("format-urgency", "urgency", value);
table.addCell (row++, columnCount, value);
}
@ -580,7 +580,7 @@ int handleCustomReport (const std::string& report, std::string& outs)
char direction = (*sortColumn)[sortColumn->length () - 1];
// TODO This code should really be using Att::type.
if (column == "id")
if (column == "id" || column == "urgency")
table.sortOn (columnIndex[column],
(direction == '+' ?
Table::ascendingNumeric :

View file

@ -661,6 +661,7 @@ int handleInfo (std::string& outs)
//table.addCell (row, 0, "Urgency");
//table.addCell (row, 1, task->urgency ());
// Create a second table, containing undo log change details.
Table journal;
// If an alternating row color is specified, notify the table.