From 5202589abd2d6c8e272d8b8b5d3e6ac64c9b3423 Mon Sep 17 00:00:00 2001 From: kedder Date: Mon, 27 Jan 2003 17:34:03 +0000 Subject: [PATCH] handle properly empty date values in history git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1483 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]: -- 2.39.5