Commit 158421c9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

alex : prevent the copy of a category to "hide" the original object, which is...

alex : prevent the copy of a category to "hide" the original object, which is necessary for acquisition to work (required to get the properties).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2169 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 36533273
...@@ -164,9 +164,9 @@ class CategoryTemplateItem(ObjectTemplateItem): ...@@ -164,9 +164,9 @@ class CategoryTemplateItem(ObjectTemplateItem):
category_id = relative_url.split('/')[-1] category_id = relative_url.split('/')[-1]
#if not object.cb_isCopyable(): #if not object.cb_isCopyable():
# raise CopyError, eNotSupported % escape(relative_url) # raise CopyError, eNotSupported % escape(relative_url)
category = category._getCopy(context) category_copy = category._getCopy(context)
self._archive[relative_url] = category self._archive[relative_url] = category_copy
category.wl_clearLocks() category_copy.wl_clearLocks()
# No store attributes for light install # No store attributes for light install
mapping = PersistentMapping() mapping = PersistentMapping()
mapping['id'] = category.getId() mapping['id'] = category.getId()
......
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