From: richard Date: Tue, 10 Dec 2002 23:39:40 +0000 (+0000) Subject: don't set explicit None Link properties in web create X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eada09eb7f4f94aaf2a46af6600a02eed1009405;p=roundup.git don't set explicit None Link properties in web create git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1400 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 4c3306b..2d30a8a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index c1c8021..0c8deac 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -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