diff roundup/cgi/form_parser.py @ 3777:74aebbbea305

Sorry for the mega-patch - was all done on the train: - handling of required for booelan False and numeric 0 [SF#1608200] - removed bogus args attr of ConfigurationError [SF#1608056] - implemented start_response in roundup.cgi [SF#1604304]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 11 Dec 2006 23:36:15 +0000
parents 9d93653f8dcb
children 63d58cc1394a
line wrap: on
line diff
--- a/roundup/cgi/form_parser.py	Sun Dec 03 01:09:16 2006 +0000
+++ b/roundup/cgi/form_parser.py	Mon Dec 11 23:36:15 2006 +0000
@@ -465,7 +465,10 @@
                     raise FormError, msg
 
             # register that we got this property
-            if value:
+            if isinstance(proptype, hyperdb.Multilink):
+                if value != []:
+                    got_props[this][propname] = 1
+            elif value is not None:
                 got_props[this][propname] = 1
 
             # get the old value

Roundup Issue Tracker: http://roundup-tracker.org/