[Erp5-report] r28768 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 3 10:36:31 CEST 2009


Author: romain
Date: Thu Sep  3 10:36:31 2009
New Revision: 28768

URL: http://svn.erp5.org?rev=28768&view=rev
Log:
Check that skin folder id is present is the list of installed skins (and not
directly in the selection string to prevent false positive)

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=28768&r1=28767&r2=28768&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Sep  3 10:36:31 2009
@@ -209,8 +209,8 @@
       skin_layer_list.append(skin_name)
 
     selection = skin_tool.getSkinPath(skin_name) or ''
-    if (skin_folder_id not in selection) and (skin_name in skin_layer_list):
-      selection_list = selection.split(',')
+    selection_list = selection.split(',')
+    if (skin_folder_id not in selection_list) and (skin_name in skin_layer_list):
       selection_list.insert(0, skin_folder_id)
       if reorder_skin_selection:
         selection_list.sort(




More information about the Erp5-report mailing list