From f12a4d7cd6a5a1a38ff32a97c8b7fae4562dfc45 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 7 Jan 2017 12:00:53 -0500 Subject: [PATCH] Task: Added TEMPLATE and INSTANCE virtual tags --- src/Task.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 48ac9a30c..d3f83f2c2 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1259,11 +1259,13 @@ bool Task::hasTag (const std::string& tag) const #endif if (tag == "ACTIVE") return has ("start"); if (tag == "SCHEDULED") return has ("scheduled"); - if (tag == "CHILD") return has ("parent"); + if (tag == "CHILD") return has ("parent"); // 2017-01-07: Deprecated in 2.6.0 + if (tag == "INSTANCE") return has ("template"); if (tag == "UNTIL") return has ("until"); if (tag == "ANNOTATED") return hasAnnotations (); if (tag == "TAGGED") return has ("tags"); - if (tag == "PARENT") return has ("mask"); + if (tag == "PARENT") return has ("mask"); // 2017-01-07: Deprecated in 2.6.0 + if (tag == "TEMPLATE") return has ("last"); if (tag == "WAITING") return get ("status") == "waiting"; if (tag == "PENDING") return get ("status") == "pending"; if (tag == "COMPLETED") return get ("status") == "completed";