Skip to content

Commit f690300

Browse files
author
Richard Jones
committed
don't set explicit None Link properties in web create
1 parent dcf6188 commit f690300

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ are given with the most recent entry first.
1919
- detect and break email loops (sf bug 640854)
2020
- finished of handling of retired flag in filter() (sf bug 635260)
2121
- allow StringHTMLProperty in MultilinkHTMLProperty test to work
22+
- don't set explicit None Link properties in web create
2223

2324

2425
2002-11-07 0.5.2

roundup/cgi/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.60 2002-12-10 06:01:59 richard Exp $
1+
# $Id: client.py,v 1.61 2002-12-10 23:39:40 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -1238,6 +1238,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')):
12381238
elif isinstance(proptype, hyperdb.Link):
12391239
# see if it's the "no selection" choice
12401240
if value == '-1':
1241+
# if we're creating, just don't include this property
1242+
if not nodeid:
1243+
continue
12411244
value = None
12421245
else:
12431246
# handle key values

0 commit comments

Comments
 (0)