From ccbf261a702f7652c84db67f186478ad98045215 Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Wed, 27 Apr 2022 17:27:19 +0200 Subject: [PATCH] fix for iconresolver --- Products/CMFPlone/browser/icons.py | 6 +++++- news/3500.bugfix | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 news/3500.bugfix diff --git a/Products/CMFPlone/browser/icons.py b/Products/CMFPlone/browser/icons.py index 1bb25e7d58..4b4a4495ba 100644 --- a/Products/CMFPlone/browser/icons.py +++ b/Products/CMFPlone/browser/icons.py @@ -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): diff --git a/news/3500.bugfix b/news/3500.bugfix new file mode 100644 index 0000000000..cd758e0f65 --- /dev/null +++ b/news/3500.bugfix @@ -0,0 +1,2 @@ +fix `@@iconresolver` to resolve names with "/" correctly (eg. "contenttype/document") +[petschki]