Bug
- Fix a bug where CmdEdit reported modifications to a duration UDA when no modifications were made.
This commit is contained in:
committed by
Paul Beckingham
parent
de1e413d73
commit
dc2e0c1c97
@@ -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 ------------------------------
|
||||
|
||||
|
||||
@@ -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 != "")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user