Skip to content

Commit

Permalink
fix for iconresolver
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Apr 27, 2022
1 parent 16ca65e commit ccbf261
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Products/CMFPlone/browser/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ class IconsView(BrowserView):

prefix = "plone.icon."
defaulticon = "++plone++icons/plone.svg"
name = ""

def publishTraverse(self, request, name):
self.name = name
if self.name:
# fix traversing to eg. "contenttype/document"
self.name += "/"
self.name += name
return self

def __call__(self):
Expand Down
2 changes: 2 additions & 0 deletions news/3500.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix `@@iconresolver` to resolve names with "/" correctly (eg. "contenttype/document")
[petschki]

0 comments on commit ccbf261

Please sign in to comment.