Commit 085af5ce authored by Yoshinori Okuji's avatar Yoshinori Okuji

_getPriceParameterDict takes it into account that sort_method may be passed in kw.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5848 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 630dd33e
......@@ -545,11 +545,13 @@ class Resource(XMLMatrix, CoreResource, Variated):
tmp_context = self.asContext(context=context,
categories=category_list,
REQUEST=REQUEST, **kw)
tmp_kw = kw.copy()
if 'sort_method' not in tmp_kw:
tmp_kw['sort_method'] = self._pricingSortMethod
mapped_value = domain_tool.generateMappedValue(
tmp_context,
portal_type=portal_type_list,
sort_method=self._pricingSortMethod,
has_cell_content=0, **kw)
has_cell_content=0, **tmp_kw)
if mapped_value is not None:
mapped_value_list.append(mapped_value)
# Get price parameters
......
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