Commit 0e1705e8 authored by Jérome Perrin's avatar Jérome Perrin

Create a Preference in Base_makeTemplateFromDocument, not a System Preference

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23038 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afc60b36
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
\n \n
preference = portal_preferences.getActivePreference()\n preference = portal_preferences.getActivePreference()\n
if preference is None or preference.getPreferenceState()!=\'enabled\':\n if preference is None or preference.getPreferenceState()!=\'enabled\':\n
p = portal_preferences.newContent()\n p = portal_preferences.newContent(portal_type=\'Preference\')\n
p.setTitle(\'Document Template Container\')\n p.setTitle(\'Document Template Container\')\n
p.enable()\n p.enable()\n
preference = p\n preference = p\n
......
932 933
\ No newline at end of file \ No newline at end of file
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