Commit c9d1fbc4 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.Base: Make skinSuper more sensitive to SKINDATA changes.

It is dangerous to rely on SKINDATA, as its structure changes. There is no
better solution here, so continue using it - just make it more prone to
raise rather than accidentally using the wrong item (3-tuple became a
4-tuple by prepending a single item, so [0] would return the wrong item).
parent 741b4765
......@@ -2948,7 +2948,8 @@ class Base( CopyContainer,
skin_info = SKINDATA.get(thread.get_ident())
if skin_info is not None:
portal = self.getPortalObject()
object = skinResolve(portal, (skin_info[1], skin), id)
_, skin_selection_name, _, _ = skin_info
object = skinResolve(portal, (skin_selection_name, skin), id)
if object is not None:
# First wrap at the portal to set the owner of the executing script.
# This mimics the usual way to get an object from skin folders,
......
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