Commit 3e8b181a authored by Romain Courteaud's avatar Romain Courteaud

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
parent c4b911e6
......@@ -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(',')
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(
......
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