From 3e8b181a2ff5b54805df2371fd301e40a05674c6 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 3 Sep 2009 08:36:31 +0000 Subject: [PATCH] Check that skin folder id is present is the list of installed skins (and not directly in the selection string to prevent false positive) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28768 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 4e7589f6f3..0f71ad4402 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -209,8 +209,8 @@ def registerSkinFolder(skin_tool, skin_folder): 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( -- 2.30.9