Commit 849534d5 authored by Aurel's avatar Aurel

when exporting catalog method, if is_filter no set, do not export

filter parameter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7476 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eafdb45b
......@@ -1479,6 +1479,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
catalog, method_id)
self._is_filtered_archive[method_id] = 0
if catalog.filter_dict.has_key(method_id):
if catalog.filter_dict[method_id]['filtered']:
self._is_filtered_archive[method_id] = \
catalog.filter_dict[method_id]['filtered']
self._filter_expression_archive[method_id] = \
......@@ -1516,6 +1517,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
xml_data += os.linesep+' </item>'
if catalog.filter_dict.has_key(method_id):
if catalog.filter_dict[method_id]['filtered']:
xml_data += os.linesep+' <item key="_is_filtered_archive" type="int">'
xml_data += os.linesep+' <value>1</value>'
xml_data += os.linesep+' </item>'
......
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