Commit 6312d775 authored by Jérome Perrin's avatar Jérome Perrin

If no REQUEST is passed explicity to ListBoxWidget.render, get it using Globals.get_request.

This is needed to prevent errors in "Test" ZMI tab.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91f38dbf
......@@ -378,6 +378,8 @@ class ListBoxWidget(Widget.Widget):
which is intended to simplify operation with a spreadsheet or a pagetemplate
"""
if REQUEST is None:
REQUEST = get_request()
if render_format == 'list':
renderer = ListBoxListRenderer(self, field, REQUEST)
else:
......
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