diff --git a/ChangeLog b/ChangeLog index 1c96f06fb..627c79b0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -97,6 +97,7 @@ Bugs + Fixed bug where specifying an ID of 0 yielded all completed/deleted tasks (thanks to greenskeleton). + Fixed rc.nag documentation (thanks to Jeroen Budts). + + Fixed bug where task edit incorrectly claimed duration UDA was modified. ------ old releases ------------------------------ diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index fb5bfaf94..6a8028734 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -675,7 +675,9 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string { std::string value = findValue (after, "\n UDA " + col->first + ":"); if ((task.get (col->first) != value) && (type != "date" || - (task.get (col->first) != Date (value, dateformat).toEpochString ()))) + (task.get (col->first) != Date (value, dateformat).toEpochString ())) && + (type != "duration" || + (task.get (col->first) != (std::string) Duration (value) ))) { if (value != "") {