Code

fix for odd Multilink journalling
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 12 Mar 2003 02:12:50 +0000 (02:12 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 12 Mar 2003 02:12:50 +0000 (02:12 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1586 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 288b6f6e37ed6feafdb9b09b98b4a27bbb92bfdd..2fe97ea1158ea70d63b2d8298cbb4c57ef6616b9 100644 (file)
@@ -599,8 +599,7 @@ class HTMLItem(HTMLPermissions):
                                 os.path.join(self._db.config.TEMPLATES,
                                 classname+'.item'))
 
-                        if isinstance(prop, hyperdb.Multilink) and \
-                                len(args[k]) > 0:
+                        if isinstance(prop, hyperdb.Multilink) and args[k]:
                             ml = []
                             for linkid in args[k]:
                                 if isinstance(linkid, type(())):