From 1bd9309af16726dc0734ed622dced308289a5181 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 25 Aug 2015 13:59:58 +0200
Subject: [PATCH] ZMI editor patch: support the case where there is no
 PUBLISHED in request

and fix a typo
---
 product/ERP5Type/patches/AceEditorZMI.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/patches/AceEditorZMI.py b/product/ERP5Type/patches/AceEditorZMI.py
index 735cce1307..309a758d69 100644
--- a/product/ERP5Type/patches/AceEditorZMI.py
+++ b/product/ERP5Type/patches/AceEditorZMI.py
@@ -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)
 
-- 
2.30.9