Commit 84386964 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

(cherry picked from commit 1bd9309a)
parent 40fcee23
......@@ -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