Commit 9839db19 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix the wrong condition and code. this bug was found thanks to a horrible...

fix the wrong condition and code. this bug was found thanks to a horrible name; portal_skins/erp5_dms/RSS (Script Python) whose id exists in one of skin selection name...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28905 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff112c10
......@@ -60,8 +60,8 @@ def CMFCoreSkinsTool__updateCacheEntry(self, container_id, object_id):
if container_id in skin_folder_id_list:
skin_folder_id_list.reverse()
this_folder_index = skin_folder_id_list.index(container_id)
if skin_location_list.has_key(object_id):
existing_folder_index = skin_folder_id_list.index(skin_location_list[object_id])
if skin_location_list[selection_name].has_key(object_id):
existing_folder_index = skin_folder_id_list.index(skin_location_list[selection_name][object_id])
else:
existing_folder_index = this_folder_index + 1
if existing_folder_index > this_folder_index:
......
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