Skip to content

Commit a1a7451

Browse files
author
Roche Compaan
committed
Fixed small bug that prevented adding issues through the web.
1 parent 9ed338d commit a1a7451

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

roundup/cgi_client.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: cgi_client.py,v 1.77 2001-12-06 22:48:29 richard Exp $
18+
# $Id: cgi_client.py,v 1.78 2001-12-07 05:59:27 rochecompaan Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -313,7 +313,7 @@ def shownode(self, message=None):
313313
self.nodeid)
314314

315315
# set status to chatting if 'unread' or 'resolved'
316-
if 'status' not in changed.keys():
316+
if not changed.has_key('status'):
317317
try:
318318
# determine the id of 'unread','resolved' and 'chatting'
319319
unread_id = self.db.status.lookup('unread')
@@ -525,7 +525,8 @@ def _post_editnode(self, nid, change_note=None):
525525
m = [summary]
526526

527527
# append the change note
528-
m.append(change_note)
528+
if change_note:
529+
m.append(change_note)
529530

530531
# now create the message
531532
content = '\n'.join(m)
@@ -1084,6 +1085,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
10841085

10851086
#
10861087
# $Log: not supported by cvs2svn $
1088+
# Revision 1.77 2001/12/06 22:48:29 richard
1089+
# files multilink was being nuked in post_edit_node
1090+
#
10871091
# Revision 1.76 2001/12/05 14:26:44 rochecompaan
10881092
# Removed generation of change note from "sendmessage" in roundupdb.py.
10891093
# The change note is now generated when the message is created.

0 commit comments

Comments
 (0)