[Erp5-report] r28925 - /erp5/trunk/products/ERP5Type/patches/CMFCoreSkinsTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 11 10:28:43 CEST 2009
Author: kazuhiko
Date: Fri Sep 11 10:28:42 2009
New Revision: 28925
URL: http://svn.erp5.org?rev=28925&view=rev
Log:
fix another wrong condition and code. this bug was found thanks to test_09_WebSiteSkinSelection in testERP5Web.
Modified:
erp5/trunk/products/ERP5Type/patches/CMFCoreSkinsTool.py
Modified: erp5/trunk/products/ERP5Type/patches/CMFCoreSkinsTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/CMFCoreSkinsTool.py?rev=28925&r1=28924&r2=28925&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/CMFCoreSkinsTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/CMFCoreSkinsTool.py [utf8] Fri Sep 11 10:28:42 2009
@@ -63,8 +63,8 @@
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:
+ existing_folder_index = this_folder_index - 1
+ if existing_folder_index < this_folder_index:
skin_location_list[selection_name][object_id] = container_id
SkinsTool.manage_skinLayers = CMFCoreSkinsTool_manage_skinLayers
More information about the Erp5-report
mailing list