Commit df419289 authored by Yusei Tahara's avatar Yusei Tahara

stop to call makeTemplate here. At this point, uid of sub object is still

old and if calling makeTemplate, original document will be unindexed.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19594 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eeca219a
...@@ -296,9 +296,9 @@ class CopyContainer: ...@@ -296,9 +296,9 @@ class CopyContainer:
except WorkflowException: except WorkflowException:
pass pass
if self.getParentValue().getPortalType() == 'Preference': ### Don't call makeTemplate here!!
# Make this a template if our parent is a preference ### At this point, uid of sub object is still old and
self.makeTemplate() ### if calling makeTemplate, original document will be unindexed.
# Call a type based method to reset so properties if necessary # Call a type based method to reset so properties if necessary
script = self._getTypeBasedMethod('afterClone') script = self._getTypeBasedMethod('afterClone')
......
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