mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1482
- TW-1482 Priority values may be 'H', 'M' or 'L', not ''.
This commit is contained in:
parent
8afdb3d8d5
commit
38daf415ff
2 changed files with 3 additions and 1 deletions
|
@ -232,6 +232,7 @@
|
||||||
- TW-1471 task calc uses output it doesn't understand (thanks to Jens Erat).
|
- TW-1471 task calc uses output it doesn't understand (thanks to Jens Erat).
|
||||||
- TW-1477 Incompatibility with recurring tasks created with 2.3.0 (thanks to
|
- TW-1477 Incompatibility with recurring tasks created with 2.3.0 (thanks to
|
||||||
David Costa).
|
David Costa).
|
||||||
|
- TW-1482 Priority values may be 'H', 'M' or 'L', not ''.
|
||||||
- Added new holidays.xy-XY.rc definition files
|
- Added new holidays.xy-XY.rc definition files
|
||||||
- Removed deprecated 'echo.command' setting, in favor of the 'header' and
|
- Removed deprecated 'echo.command' setting, in favor of the 'header' and
|
||||||
'affected' verbosity tokens.
|
'affected' verbosity tokens.
|
||||||
|
|
|
@ -1486,7 +1486,8 @@ void Task::validate (bool applyDefault /* = true */)
|
||||||
std::string priority = get ("priority");
|
std::string priority = get ("priority");
|
||||||
if (priority != "H" &&
|
if (priority != "H" &&
|
||||||
priority != "M" &&
|
priority != "M" &&
|
||||||
priority != "L")
|
priority != "L" &&
|
||||||
|
priority != "")
|
||||||
throw format (STRING_TASK_VALID_PRIORITY, priority);
|
throw format (STRING_TASK_VALID_PRIORITY, priority);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue