Code

don't set explicit None Link properties in web create
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 10 Dec 2002 23:39:40 +0000 (23:39 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 10 Dec 2002 23:39:40 +0000 (23:39 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1400 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/client.py

index 4c3306be80200adbed0ebbc2abd6db7abae6771a..2d30a8af8410591a64892cb03541694bbf2a4bdc 100644 (file)
@@ -19,6 +19,7 @@ are given with the most recent entry first.
 - detect and break email loops (sf bug 640854)
 - finished of handling of retired flag in filter() (sf bug 635260)
 - allow StringHTMLProperty in MultilinkHTMLProperty test to work
+- don't set explicit None Link properties in web create
 
 
 2002-11-07 0.5.2
index c1c8021c5a79df735fbfea724c3d2f07e14cfed2..0c8deac2f835e7f27038d5466eb401819fa8c914 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.60 2002-12-10 06:01:59 richard Exp $
+# $Id: client.py,v 1.61 2002-12-10 23:39:40 richard Exp $
 
 __doc__ = """
 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+$')):
         elif isinstance(proptype, hyperdb.Link):
             # see if it's the "no selection" choice
             if value == '-1':
+                # if we're creating, just don't include this property
+                if not nodeid:
+                    continue
                 value = None
             else:
                 # handle key values