Skip to content

Commit 31e73a4

Browse files
author
Johannes Gijsbers
committed
Set status to 'chatting' if no status is set (patch [SF#827613]).
1 parent 36bf8fd commit 31e73a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/classic/detectors/statusauditor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
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.3 2003-09-04 00:47:01 richard Exp $
21+
#$Id: statusauditor.py,v 1.4 2003-10-24 15:51:43 jlgijsbers Exp $
2222

2323
def chatty(db, cl, nodeid, newvalues):
24-
''' If the issue is currently 'unread', 'resolved' or 'done-cbb', then set
25-
it to 'chatting'
24+
''' If the issue is currently 'unread', 'resolved', 'done-cbb' or None,
25+
then set it to 'chatting'
2626
'''
2727
# don't fire if there's no new message (ie. chat)
2828
if not newvalues.has_key('messages'):
@@ -55,7 +55,7 @@ def chatty(db, cl, nodeid, newvalues):
5555

5656
# ok, there's no explicit change, so check if we are in a state that
5757
# should be changed
58-
if current_status in fromstates:
58+
if current_status in fromstates + [None]:
5959
# yep, we're now chatting
6060
newvalues['status'] = chatting_id
6161

0 commit comments

Comments
 (0)