src/pyams_portal/zmi/layout.py
changeset 77 32bf697871ac
parent 75 02d9ff8d1803
child 78 9cb4449caef6
--- a/src/pyams_portal/zmi/layout.py	Wed Apr 11 11:36:13 2018 +0200
+++ b/src/pyams_portal/zmi/layout.py	Thu Apr 12 09:18:08 2018 +0200
@@ -465,14 +465,14 @@
 class PortalTemplatePortletEditForm(AdminDialogEditForm):
     """Portal template portlet edit form"""
 
-    prefix = 'portlet_properties.'
+    prefix = 'portlet.'
 
     dialog_class = 'modal-large'
 
     def __call__(self):
         request = self.request
         request.registry.notify(PageletCreatedEvent(self))
-        portlet_id = int(request.params.get('{0}widgets.portlet_id'.format(self.prefix)))
+        portlet_id = int(request.params.get('portlet.widgets.portlet_id'))
         portlet_config = IPortalPortletsConfiguration(self.context).get_portlet_configuration(portlet_id)
         if portlet_config is None:
             raise NotFound()
@@ -495,7 +495,7 @@
         request = self.request
         request.registry.notify(PageletCreatedEvent(self))
         # load portlet config
-        portlet_id = int(request.params.get('{0}widgets.portlet_id'.format(self.prefix)))
+        portlet_id = int(request.params.get('portlet.widgets.portlet_id'))
         portlet_config = IPortalPortletsConfiguration(self.context).get_portlet_configuration(portlet_id)
         if portlet_config is None:
             raise NotFound()