Submitting a formlib generated form appears to do something, but doesn't
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.formlib |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When a form is generated with formlib I can click Save and it saves, or Cancel and it cancels. But if you hit enter it seems to submit and the page reloads with the new value in the changed form field, but it doesn't actually save it or alert you that nothing was changed. This is misleading. We believe hitting Enter should save the field just like clicking a Save button.
I am not sure if this is the best solution, but it seems to be working for us, this far (Not yet in production use).
*** zope/formlib/
--- zope/formlib/
***************
*** 598,603 ****
--- 598,606 ----
def submitted(self):
+ if self.form.
+ and not [k for k in self.form.
+ self.form.
return (self.__name__ in self.form.
def update(self):
The zope.formlib project on Launchpad has been archived at the request of the Zope developers (see https:/ /answers. launchpad. net/launchpad/ +question/ 683589 and https:/ /answers. launchpad. net/launchpad/ +question/ 685285). If this bug is still relevant, please refile it at https:/ /github. com/zopefoundat ion/zope. formlib.