TW-1279: default.* applies to recurring tasks
- Recurring tasks inherit attributes from their parent. default.* is no longer applied to them.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
2.4.3 () -
|
2.4.3 () -
|
||||||
|
|
||||||
|
- TW-1279 Make default.* not apply to recurring tasks.
|
||||||
- TW-1578 Bash tab completion problems on first run
|
- TW-1578 Bash tab completion problems on first run
|
||||||
(thanks to Renato Alves and Ptolemarch).
|
(thanks to Renato Alves and Ptolemarch).
|
||||||
- TW-1580 "modified" attribute no longer updated (thanks to David Patrick).
|
- TW-1580 "modified" attribute no longer updated (thanks to David Patrick).
|
||||||
|
|||||||
@@ -1384,7 +1384,7 @@ void Task::validate (bool applyDefault /* = true */)
|
|||||||
if (!has ("modified") || get ("modified") == "")
|
if (!has ("modified") || get ("modified") == "")
|
||||||
setAsNow ("modified");
|
setAsNow ("modified");
|
||||||
|
|
||||||
if (applyDefault)
|
if (applyDefault && (! has ("parent") || get ("parent") == ""))
|
||||||
{
|
{
|
||||||
// Override with default.project, if not specified.
|
// Override with default.project, if not specified.
|
||||||
if (Task::defaultProject != "" &&
|
if (Task::defaultProject != "" &&
|
||||||
|
|||||||
Reference in New Issue
Block a user