Added request argument
authorThierry Florac <thierry.florac@onf.fr>
Thu, 06 Sep 2018 13:58:31 +0200
changeset 179 61229f2e93ce
parent 178 a1cd70c6496f
child 180 b3a4f4e2c959
Added request argument
src/pyams_portal/zmi/portlet.py
--- a/src/pyams_portal/zmi/portlet.py	Wed Sep 05 11:21:18 2018 +0200
+++ b/src/pyams_portal/zmi/portlet.py	Thu Sep 06 13:58:31 2018 +0200
@@ -141,7 +141,7 @@
 
         output = super(PortletSettingsPropertiesEditor, self).get_ajax_output(changes)
         if 'renderer' in changes.get(IPortletSettings, ()):
-            renderer = self.context.get_renderer()
+            renderer = self.context.get_renderer(self.request)
             if (renderer is not None) and \
                (renderer.target_interface is None) and \
                (renderer.settings_interface is not None):