Commit 69f4681c authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not include sub-categories by default.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3405 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40735a80
......@@ -216,7 +216,7 @@ class CategoryTemplateItem(ObjectTemplateItem):
#if not object.cb_isCopyable():
# raise CopyError, eNotSupported % escape(relative_url)
category_copy = category._getCopy(context)
include_sub_categories = category.getProperty('business_template_include_sub_categories', 1)
include_sub_categories = category.getProperty('business_template_include_sub_categories', 0)
if not include_sub_categories:
id_list = category_copy.objectIds()
if len(id_list) > 0:
......
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