Commit c1213673 authored by Jérome Perrin's avatar Jérome Perrin

forge: fix priority in "Create Skin Folder" action

the property name had a typo, so it was not correctly used for
priorities
parent cc5868e6
......@@ -11,10 +11,10 @@ skin_folder = portal.portal_skins[skin_folder_name]
if skin_layer_priority:
marker = []
if skin_folder.getProperty("business_template_skin_layer_priorty", marker) is marker:
skin_folder.manage_addProperty("business_template_skin_layer_priorty", skin_layer_priority, "string")
if skin_folder.getProperty("business_template_skin_layer_priority", marker) is marker:
skin_folder.manage_addProperty("business_template_skin_layer_priority", skin_layer_priority, "float")
else:
skin_folder.manage_changeProperties({"business_template_skin_layer_priorty": skin_layer_priority})
skin_folder.manage_changeProperties({"business_template_skin_layer_priority": skin_layer_priority})
if skin_layer_list:
all_skin_layers_selected = len(skin_layer_list) == len(portal.portal_skins.getSkinPaths())
......
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