- Fixed bug #595, where taskwarrior ignored changes to the wait date during
  the edit command, consequently not changing task status (thanks to Eric
  Fluger).
This commit is contained in:
Paul Beckingham 2010-12-31 00:33:43 -05:00
parent 1b66904550
commit 57d577a140
3 changed files with 8 additions and 1 deletions

View file

@ -59,6 +59,9 @@
Steve Rader).
+ Fixed bug #589, where the man page did not adequately describe searching
or usage of attribute modifiers (thanks to Steve Rader).
+ Fixed bug #595, where taskwarrior ignored changes to the wait date during
the edit command, consequently not changing task status (thanks to Eric
Fluger).
------ old releases ------------------------------

View file

@ -427,12 +427,14 @@ static void parseTask (Task& task, const std::string& after)
{
std::cout << "Wait date modified.\n";
task.set ("wait", value);
task.setStatus (Task::waiting);
}
}
else
{
std::cout << "Wait date modified.\n";
task.set ("wait", value);
task.setStatus (Task::waiting);
}
}
else
@ -441,6 +443,7 @@ static void parseTask (Task& task, const std::string& after)
{
std::cout << "Wait date removed.\n";
task.remove ("wait");
task.setStatus (Task::pending);
}
}

View file

@ -557,7 +557,8 @@ std::string taskInfoDifferences (const Task& before, const Task& after)
std::string renderAttribute (const std::string& name, const std::string& value)
{
Att a;
if (a.type (name) == "date")
if (a.type (name) == "date" &&
value != "")
{
Date d ((time_t)::atoi (value.c_str ()));
return d.toString (context.config.get ("dateformat"));