Commit 3e9e005c authored by Fabien Morin's avatar Fabien Morin

correct very dangerous bug (thanks to Mame) : don't remove other files wich not

contain portal_type object id, because many portal_types could be in a same
skin folder.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20435 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6f22b102
...@@ -128,7 +128,7 @@ def ERP5Site_updateModuleScribus(self, ...@@ -128,7 +128,7 @@ def ERP5Site_updateModuleScribus(self,
# except the module form view (because it don't change) # except the module form view (because it don't change)
object_id_list = [] object_id_list = []
for object in skin_folder._objects: for object in skin_folder._objects:
if 'Module_view' not in object['id']: if 'Module_view' not in object['id'] and temp_portal_type in object['id']:
object_id_list.append(object['id']) object_id_list.append(object['id'])
# move the old objects in portal_trash # move the old objects in portal_trash
......
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