From: neaj Date: Wed, 25 Jun 2003 09:49:34 +0000 (+0000) Subject: Change so setting a property to its current value is also accepted as an X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bfbc98977561ea060a791a925929a942a626acc7;p=roundup.git Change so setting a property to its current value is also accepted as an explicit change. This is useful in a case where an issue is resolved, and you want to mail in a comment without making the status revert to chatting. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1780 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/templates/classic/detectors/statusauditor.py b/templates/classic/detectors/statusauditor.py index 05f1710..f1ce29b 100644 --- a/templates/classic/detectors/statusauditor.py +++ b/templates/classic/detectors/statusauditor.py @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # -#$Id: statusauditor.py,v 1.1 2003-04-17 03:26:38 richard Exp $ +#$Id: statusauditor.py,v 1.2 2003-06-25 09:49:34 neaj Exp $ def chatty(db, cl, nodeid, newvalues): ''' If the issue is currently 'unread', 'resolved' or 'done-cbb', then set @@ -41,7 +41,7 @@ def chatty(db, cl, nodeid, newvalues): current_status = cl.get(nodeid, 'status') # see if there's an explicit change in this transaction - if newvalues.has_key('status') and newvalues['status'] != current_status: + if newvalues.has_key('status'): # yep, skip return