Commit 891b5360 authored by Ivan Tyagov's avatar Ivan Tyagov

Propagandate current ERP5 form with leading prefix in case of listbox in order...

Propagandate current ERP5 form with leading prefix in case of listbox in order to not conflict with relation field.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38580 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65348d7e
...@@ -2620,8 +2620,8 @@ class ListBoxHTMLRenderer(ListBoxRenderer): ...@@ -2620,8 +2620,8 @@ class ListBoxHTMLRenderer(ListBoxRenderer):
request = self.request request = self.request
field_id = self.getId() field_id = self.getId()
form = self.getForm() form = self.getForm()
request.set('form_id', form.getId()) request.set('listbox_form_id', form.getId())
request.set('field_id', field_id) request.set('listbox_field_id', field_id)
pt = self.getPageTemplate() pt = self.getPageTemplate()
return pt() return pt()
......
...@@ -631,10 +631,10 @@ return [] ...@@ -631,10 +631,10 @@ return []
request = get_request() request = get_request()
portal.ListBoxZuite_reset() portal.ListBoxZuite_reset()
form = portal.FooModule_viewFooList form = portal.FooModule_viewFooList
self.assertEqual(None, request.get('form_id')) self.assertEqual(None, request.get('listbox_form_id'))
form.render() form.render()
self.assertEqual(form.getId(), request.get('form_id')) self.assertEqual(form.getId(), request.get('listbox_form_id'))
self.assertEqual(form.listbox.getId(), request.get('field_id')) self.assertEqual(form.listbox.getId(), request.get('listbox_field_id'))
def test_suite(): def test_suite():
......
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