Commit 73a2f6f9 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Make sure that if a document is copied to preference, it is considered as a template.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16732 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 273e017d
......@@ -301,6 +301,9 @@ class CopyContainer:
except WorkflowException:
pass
if self.getParentValue().getPortalType() == 'Preference':
# Make this a template if our parent is a preference
self.makeTemplate()
self.__recurse('manage_afterClone', item)
......
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