From cf9b5ca5c6264ff55b57e606dc71715f0ebe0926 Mon Sep 17 00:00:00 2001 From: Federico Hernandez Date: Mon, 12 Sep 2011 00:40:01 +0200 Subject: [PATCH] CmdCalendar - fix for failing unit tests as calendar args are treated special --- src/commands/CmdCalendar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index 145fc308a..7c6742de1 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -342,6 +342,9 @@ int CmdCalendar::execute (std::string& output) std::string report = context.config.get ("calendar.details.report"); std::string report_filter = context.config.get ("report." + report + ".filter"); + context.a3.clear (); + context.a3.push_back (Arg ("task", Arg::cat_program)); + report_filter += " due.after:" + after + " due.before:" + before; context.config.set ("report." + report + ".filter", report_filter);