From 58f2b9789e36bdfbae7ee321ee8a2a58a6ea2a63 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 5 May 2011 23:49:51 -0400 Subject: [PATCH] Bug #762 - Fixed bug #762, so that modifications to task are considered 'write' commands, and there update shadow files (thanks to Aikido Guy). --- AUTHORS | 1 + ChangeLog | 2 ++ src/Context.cpp | 4 +++- src/custom.cpp | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 8912275af..2ef99a642 100644 --- a/AUTHORS +++ b/AUTHORS @@ -87,4 +87,5 @@ suggestions: Pete Lewis Bryce Harrington Stefan Hacker + Alan Barton diff --git a/ChangeLog b/ChangeLog index 92b209f63..ed965b834 100644 --- a/ChangeLog +++ b/ChangeLog @@ -60,6 +60,8 @@ are quoted (thanks to Duane Waddle). + Applied patch for Bug #746, which added missing documentation for the 'entry' report column (thanks to Duane Waddle). + + Fixed bug #762, so that modifications to task are considered 'write' commands, + and there update shadow files (thanks to Aikido Guy). # Untracked Bugs, biggest first. diff --git a/src/Context.cpp b/src/Context.cpp index 9aa7c1ebb..294e7ecbd 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -312,7 +312,9 @@ int Context::dispatch (std::string &out) else { rc = shortUsage (out); } // Only update the shadow file if such an update was not suppressed (shadow), - if (cmd.isWriteCommand () && !inShadow) + if ((cmd.isWriteCommand () || + (cmd.command == "" && sequence.size ())) && + !inShadow) shadow (); return rc; diff --git a/src/custom.cpp b/src/custom.cpp index 2d99959cc..ddf9838fb 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -67,7 +67,7 @@ int handleCustomReport (const std::string& report, std::string& outs) split (labels, reportLabels, ','); if (columns.size () != labels.size () && labels.size () != 0) - throw std::string ("There are a different number of columns than labels ") + + throw std::string ("There are a different number of columns and labels ") + "for report '" + report + "'."; std::map columnLabels;