diff --git a/src/custom.cpp b/src/custom.cpp index 399c5143f..6e811a813 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -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 : diff --git a/src/report.cpp b/src/report.cpp index 48cadf5c1..b166a3d50 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -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.