Commit 5c79424f authored by Aurel's avatar Aurel

check value not none at uninstall of business template


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4961 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7af6edec
...@@ -1405,7 +1405,9 @@ class CatalogMethodTemplateItem(ObjectTemplateItem): ...@@ -1405,7 +1405,9 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
else: else:
values = self._archive.values() values = self._archive.values()
else: else:
values.append(self._archive[object_path]) value = self._archive[object_path]
if value is not None:
values.append(value)
# Make copies of attributes of the default catalog of portal_catalog. # Make copies of attributes of the default catalog of portal_catalog.
sql_catalog_object_list = list(catalog.sql_catalog_object_list) sql_catalog_object_list = list(catalog.sql_catalog_object_list)
sql_uncatalog_object = list(catalog.sql_uncatalog_object) sql_uncatalog_object = list(catalog.sql_uncatalog_object)
......
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