Skip to content

Commit 61229fe

Browse files
author
Engelbert Gruber
committed
_add_assignedto_to_nosy did set nosy to assignedto only, no adding.
1 parent ad765c4 commit 61229fe

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

roundup/cgi_client.py

Lines changed: 7 additions & 4 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.93 2002-01-08 11:57:12 richard Exp $
18+
# $Id: cgi_client.py,v 1.94 2002-01-09 13:54:21 grubert Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -356,10 +356,10 @@ def _add_assignedto_to_nosy(self, props):
356356
if not props.has_key('assignedto'):
357357
return
358358
assignedto_id = props['assignedto']
359-
if props.has_key('nosy') and assignedto_id not in props['nosy']:
360-
props['nosy'].append(assignedto_id)
361-
else:
359+
if not props.has_key('nosy'):
362360
props['nosy'] = [assignedto_id]
361+
elif assignedto_id not in props['nosy']:
362+
props['nosy'].append(assignedto_id)
363363

364364
def _changenode(self, props):
365365
''' change the node based on the contents of the form
@@ -1180,6 +1180,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
11801180

11811181
#
11821182
# $Log: not supported by cvs2svn $
1183+
# Revision 1.93 2002/01/08 11:57:12 richard
1184+
# crying out for real configuration handling... :(
1185+
#
11831186
# Revision 1.92 2002/01/08 04:12:05 richard
11841187
# Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822
11851188
#

0 commit comments

Comments
 (0)