Commit 1bd9309a authored by Jérome Perrin's avatar Jérome Perrin

ZMI editor patch: support the case where there is no PUBLISHED in request

and fix a typo
parent 73fa979a
......@@ -24,8 +24,8 @@ def manage_page_footer(self):
# REQUEST['PUBLISHED'] can be the form in the acquisition context of the
# document, or a method bound to the document (after a POST it is a bound method)
published = self.REQUEST['PUBLISHED']
document = getattr(published, 'im_self', None) # bound mehtod
published = self.REQUEST.get('PUBLISHED')
document = getattr(published, 'im_self', None) # bound method
if document is None:
document = aq_parent(published)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment