Update in menu label
authorThierry Florac <thierry.florac@onf.fr>
Tue, 20 Dec 2016 18:56:24 +0100
changeset 63 2e8d9336f0ac
parent 62 8106bd960bcd
child 64 2986440f9797
Update in menu label
src/pyams_content/zmi/viewlet/toplinks/__init__.py
--- a/src/pyams_content/zmi/viewlet/toplinks/__init__.py	Tue Dec 20 17:14:08 2016 +0100
+++ b/src/pyams_content/zmi/viewlet/toplinks/__init__.py	Tue Dec 20 18:56:24 2016 +0100
@@ -51,7 +51,7 @@
         registry = get_local_registry()
         for name, site in registry.getUtilitiesFor(ISharedSite):
             menu = TopLinksMenu(self.context, self.request, self.__parent__, self)
-            menu.label = II18n(site).query_attribute('title', request=self.request) or tool.__name__
+            menu.label = II18n(site).query_attribute('title', request=self.request) or site.__name__
             menu.url = absolute_url(site, self.request, 'admin#dashboard.html')
             self.viewlets.append(menu)