Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 1382:87143c3d7156
really fix [SF#663235], and test it
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 15 Jan 2003 11:14:01 +0000 |
| parents | 944bd3c6d365 |
| children | 2bd4822f96a6 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Jan 15 11:07:45 2003 +0000 +++ b/roundup/cgi/client.py Wed Jan 15 11:14:01 2003 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.69 2003-01-15 11:07:45 richard Exp $ +# $Id: client.py,v 1.70 2003-01-15 11:14:01 richard Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -1207,7 +1207,6 @@ props = {} keys = form.keys() properties = cl.getprops() - existing_cache = {} for key in keys: # see if we're performing a special multilink action mlaction = 'set' @@ -1331,8 +1330,10 @@ # we're modifying the list - get the current list of ids if props.has_key(propname): existing = props[propname] + elif nodeid: + existing = cl.get(nodeid, propname, []) else: - existing = cl.get(nodeid, propname, []) + existing = [] # now either remove or add if mlaction == 'remove':
