From: kedder Date: Mon, 27 Jan 2003 17:34:03 +0000 (+0000) Subject: handle properly empty date values in history X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5202589abd2d6c8e272d8b8b5d3e6ac64c9b3423;p=roundup.git handle properly empty date values in history git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1483 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 948ab30..145b3b6 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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]: