diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSite_calculateStatistics.py b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSite_calculateStatistics.py index 7d0313b89496d0dec4d06b742cc5d52bdb803ebb..3e58287c6344de0baaf35bfbd28320b77049fbed 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSite_calculateStatistics.py +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSite_calculateStatistics.py @@ -46,8 +46,7 @@ def calculateStatistics(): if group is not None: documents_groups[group] = documents_groups.get(group, 0) + 1 # XXX: count owner - doc_metadata = portal_catalog.getMetadataForUid(doc.getUid()) - doc_owner = doc_metadata.get('owner', None) + doc_owner = doc.Base_getOwnerId() if doc_owner is not None and doc_owner.find('@')!=-1: # we have a website user. we wanted to filter Zope users documents_owners[doc_owner] = documents_owners.get(doc_owner, 0) + 1