Skip to content

Commit b77addc

Browse files
author
Richard Jones
committed
The submit buttons need a name attribute...
...or mozilla won't submit without a file upload. Yeah, that's bloody obscure. Grr.
1 parent 3d9f313 commit b77addc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roundup/htmltemplate.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.53 2002-01-14 04:03:32 richard Exp $
18+
# $Id: htmltemplate.py,v 1.54 2002-01-14 05:16:51 richard Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -468,9 +468,9 @@ def do_submit(self):
468468
''' add a submit button for the item
469469
'''
470470
if self.nodeid:
471-
return _('<input type="submit" value="Submit Changes">')
471+
return _('<input type="submit" name="submit" value="Submit Changes">')
472472
elif self.form is not None:
473-
return _('<input type="submit" value="Submit New Entry">')
473+
return _('<input type="submit" name="submit" value="Submit New Entry">')
474474
else:
475475
return _('[Submit: not called from item]')
476476

@@ -889,6 +889,9 @@ def render(self, form):
889889

890890
#
891891
# $Log: not supported by cvs2svn $
892+
# Revision 1.53 2002/01/14 04:03:32 richard
893+
# How about that ... date fields have never worked ...
894+
#
892895
# Revision 1.52 2002/01/14 02:20:14 richard
893896
# . changed all config accesses so they access either the instance or the
894897
# config attriubute on the db. This means that all config is obtained from

0 commit comments

Comments
 (0)