Skip to content

Commit a196581

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent c0baa74 commit a196581

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Fixed:
1111
- fix messageid generated when msgid is None for send_message (sf bug 987933)
1212
- make user permissions check more sane (fix search page for anonymous)
1313
- fixed RDBMS filter() for no matches from full-text search (sf bug 990778)
14+
- fixed DateHTMLProperty for invalid date entry (sf bug 986538)
1415

1516

1617
2004-06-24 0.7.5

roundup/cgi/templating.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ def now(self):
13011301
return DateHTMLProperty(self._client, self._classname, self._nodeid,
13021302
self._prop, self._formname, date.Date('.'))
13031303

1304-
def field(self, size = 30):
1304+
def field(self, size=30):
13051305
''' Render a form edit field for the property
13061306
13071307
If not editable, just display the value via plain().
@@ -1310,6 +1310,8 @@ def field(self, size = 30):
13101310

13111311
if self._value is None:
13121312
value = ''
1313+
elif type(self._value) is type(''):
1314+
value = self._value
13131315
else:
13141316
tz = self._db.getUserTimezone()
13151317
value = cgi.escape(str(self._value.local(tz)))

0 commit comments

Comments
 (0)