Commit 290e1c66 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Get a page template from the real context. Fix a wrong variable being added in ListBoxListRenderer.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8428 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16ae9a84
......@@ -2047,7 +2047,7 @@ class ListBoxHTMLRenderer(ListBoxRenderer):
# If a specific template is specified, use it.
method_id = self.field.get_value('page_template')
if method_id:
return getattr(context, method_id)
return aq_base(getattr(self.getContext(), method_id)).__of__(context)
# Otherwise, use the default one.
return context.asHTML
......@@ -2673,7 +2673,7 @@ class ListBoxListRenderer(ListBoxRenderer):
if isinstance(value, str):
value = value.replace(' ', ' ')
listboxline.addColumn(sql, value)
stat_listboxline.addColumn(sql, value)
listboxline_list.append(stat_listboxline)
......
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