src/pyams_portal/zmi/layout.py
changeset 82 fb2eed8dc88e
parent 78 9cb4449caef6
child 84 2be886bff11b
--- a/src/pyams_portal/zmi/layout.py	Fri Apr 27 17:13:43 2018 +0200
+++ b/src/pyams_portal/zmi/layout.py	Fri Apr 27 17:13:54 2018 +0200
@@ -471,7 +471,7 @@
     def __call__(self):
         request = self.request
         request.registry.notify(PageletCreatedEvent(self))
-        portlet_id = int(request.params.get('portlet.widgets.portlet_id'))
+        portlet_id = int(request.params.get('{0}widgets.portlet_id'.format(self.prefix)))
         portlet_config = IPortalPortletsConfiguration(self.context).get_portlet_configuration(portlet_id)
         if portlet_config is None:
             raise NotFound()
@@ -494,7 +494,7 @@
         request = self.request
         request.registry.notify(PageletCreatedEvent(self))
         # load portlet config
-        portlet_id = int(request.params.get('portlet.widgets.portlet_id'))
+        portlet_id = int(request.params.get('{0}widgets.portlet_id'.format(self.prefix)))
         portlet_config = IPortalPortletsConfiguration(self.context).get_portlet_configuration(portlet_id)
         if portlet_config is None:
             raise NotFound()