]> git.tokkee.org Git - roundup.git/commitdiff

Code

handle properly empty date values in history
authorkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 27 Jan 2003 17:34:03 +0000 (17:34 +0000)
committerkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 27 Jan 2003 17:34:03 +0000 (17:34 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1483 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 948ab30c38d15c22ec0b6a6adc24a9eca87128e9..145b3b68b66265c13bb97dc9755f6eb540d7642b 100644 (file)
@@ -636,7 +636,9 @@ class HTMLItem(HTMLPermissions):
                             d = date.Date(args[k]).local(timezone)
                             cell.append('%s: %s'%(k, str(d)))
                             if current.has_key(k):
-                                cell[-1] += ' -> %s' % date.Date(current[k]).local(timezone)
+                                if not current[k] == '(no value)' and current[k]:
+                                    current[k] = date.Date(current[k]).local(timezone)
+                                cell[-1] += ' -> %s' % current[k]
                                 current[k] = str(d)
 
                         elif isinstance(prop, hyperdb.Interval) and args[k]: