From 4165a741800e4edd7f8ec6983d177929c3c9802f Mon Sep 17 00:00:00 2001 From: Asko Soukka Date: Wed, 10 Apr 2013 10:28:46 +0300 Subject: [PATCH] Fix migration to not fail when member has been deleted --- plone/app/discussion/browser/migration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/migration.py b/plone/app/discussion/browser/migration.py index fa806d0..7859091 100644 --- a/plone/app/discussion/browser/migration.py +++ b/plone/app/discussion/browser/migration.py @@ -108,7 +108,10 @@ class View(BrowserView): if not comment.author_name: # In migrated site member.fullname ='' while member.getProperty('fullname') has the correct value - comment.author_name = member.getProperty('fullname') + if member: + comment.author_name = member.getProperty('fullname') + else: + comment.author_name = comment.author_username try: comment.author_email = reply.email