Commit 7ca97703 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix another wrong condition and code. this bug was found thanks to...

fix another wrong condition and code. this bug was found thanks to test_09_WebSiteSkinSelection in testERP5Web.


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