diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index 3a8580d16..ea6140a19 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -685,9 +685,8 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string if (type != "") { 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 ())) + if ((task.get (col->first) != value) && (type != "date" || + (task.get (col->first) != Date(value, dateformat).toEpochString ()))) { if (value != "") {