You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I solved this as follows in function send_notification_email:
# add imports
from Products.CMFCore.utils import getToolByName
from zope.component.hooks import get Site
# and change in function send_notification_email:
try:
language = api.portal.get_default_language()
except:
site = getSite()
lt = getToolByName(site, 'portal_languages')
language = lt.getDefaultLanguage()
`
The text was updated successfully, but these errors were encountered:
I solved this as follows in function send_notification_email:
`
The text was updated successfully, but these errors were encountered: