Commit 5fae0455 authored by Jérome Perrin's avatar Jérome Perrin

Rename in Folder_viewSearchDialog.

If we are call from the web, render the form directly, otherwise return the form.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17713 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d35eb985
......@@ -36,7 +36,7 @@ from Products.ERP5Form.Form import ERP5Form
from Products.ERP5Form.ListBox import ListBoxListRenderer
def getSearchDialog(self, listbox=None):
def getSearchDialog(self, REQUEST=None):
"""Generate a dynamic search dialog from a listbox.
"""
request = get_request()
......@@ -350,5 +350,9 @@ def getSearchDialog(self, listbox=None):
elif field.get_value('field_id') == 'your_category_list':
temp_form.move_field_group([field_id], default_group, 'center')
if REQUEST is not None:
# if called from the web, render the form, other wise return it (for
# Base_callDialogMethod)
return temp_form(REQUEST)
return temp_form
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