Commit 1a03f0e0 authored by Ivan Tyagov's avatar Ivan Tyagov

Fixed by identation introduced in r24710. Sorry.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24716 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f73ad782
......@@ -972,7 +972,7 @@ class ObjectTemplateItem(BaseTemplateItem):
registered_skin_selections = getattr(skin_folder, 'business_template_registered_skin_selections', None)
if registered_skin_selections is not None:
container.manage_skinLayers(chosen=registered_skin_selections, del_skin=1)
container.manage_delObjects([object_id])
container.manage_delObjects([object_id])
if container.aq_parent.meta_type == 'ERP5 Catalog' and len(container.objectIds()) == 0:
# We are removing a ZSQLMethod, remove the SQLCatalog if empty
container.getParentValue().manage_delObjects([container.id])
......
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