Skip to content

Commit 23e2ca4

Browse files
author
Jean Jordaan
committed
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.
1 parent 1b9f377 commit 23e2ca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/classic/detectors/statusauditor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020
#
21-
#$Id: statusauditor.py,v 1.1 2003-04-17 03:26:38 richard Exp $
21+
#$Id: statusauditor.py,v 1.2 2003-06-25 09:49:34 neaj Exp $
2222

2323
def chatty(db, cl, nodeid, newvalues):
2424
''' If the issue is currently 'unread', 'resolved' or 'done-cbb', then set
@@ -41,7 +41,7 @@ def chatty(db, cl, nodeid, newvalues):
4141
current_status = cl.get(nodeid, 'status')
4242

4343
# see if there's an explicit change in this transaction
44-
if newvalues.has_key('status') and newvalues['status'] != current_status:
44+
if newvalues.has_key('status'):
4545
# yep, skip
4646
return
4747

0 commit comments

Comments
 (0)