Commit 1560d9ec authored by Jérome Perrin's avatar Jérome Perrin

fix bug when making two templates from same document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24865 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e4b5f19
...@@ -65,9 +65,9 @@ if preference is None or preference.getPreferenceState()!=\'enabled\':\n ...@@ -65,9 +65,9 @@ if preference is None or preference.getPreferenceState()!=\'enabled\':\n
parent = context.getParentValue()\n parent = context.getParentValue()\n
document_id = context.getId()\n document_id = context.getId()\n
cp = parent.manage_copyObjects(ids=[document_id])\n cp = parent.manage_copyObjects(ids=[document_id])\n
preference.manage_pasteObjects(cb_copy_data=cp)\n paste_info, = preference.manage_pasteObjects(cb_copy_data=cp)\n
\n \n
template = getattr(preference, document_id)\n template = getattr(preference, paste_info[\'new_id\'])\n
template.makeTemplate()\n template.makeTemplate()\n
\n \n
context.portal_caches.clearCacheFactory(\'erp5_ui_medium\')\n context.portal_caches.clearCacheFactory(\'erp5_ui_medium\')\n
...@@ -122,7 +122,10 @@ return context.Base_redirect(form_id,\n ...@@ -122,7 +122,10 @@ return context.Base_redirect(form_id,\n
<string>parent</string> <string>parent</string>
<string>document_id</string> <string>document_id</string>
<string>cp</string> <string>cp</string>
<string>_getiter_</string>
<string>paste_info</string>
<string>getattr</string> <string>getattr</string>
<string>_getitem_</string>
<string>template</string> <string>template</string>
<string>_apply_</string> <string>_apply_</string>
<string>dict</string> <string>dict</string>
......
1036 1037
\ 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