Bug
- Flipped the test and error message for wait dates that must be before due dates.
This commit is contained in:
@@ -647,8 +647,8 @@ void Task::validate () const
|
|||||||
if (has ("wait"))
|
if (has ("wait"))
|
||||||
{
|
{
|
||||||
Date wait (::atoi (get ("wait").c_str ()));
|
Date wait (::atoi (get ("wait").c_str ()));
|
||||||
if (wait < due)
|
if (wait > due)
|
||||||
throw std::string ("A 'wait' date must be after a 'due' date.");
|
throw std::string ("A 'wait' date must be before a 'due' date.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Date entry (::atoi (get ("entry").c_str ()));
|
Date entry (::atoi (get ("entry").c_str ()));
|
||||||
|
|||||||
Reference in New Issue
Block a user