Skip to content

Commit ec7e6df

Browse files
author
Alexander Smishlajev
committed
fix handling of invalid interval input
(similar to [SF#1102165] reported for date input)
1 parent eb3bb25 commit ec7e6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ def __init__(self, client, classname, nodeid, prop, name, value,
15101510
anonymous=0):
15111511
HTMLProperty.__init__(self, client, classname, nodeid, prop,
15121512
name, value, anonymous)
1513-
if self._value:
1513+
if self._value and not isinstance(self._value, (str, unicode)):
15141514
self._value.setTranslator(self._client.translator)
15151515

15161516
def plain(self):

0 commit comments

Comments
 (0)