Skip to content

Commit d65b93a

Browse files
committed
Fix for homepage when author has no firstname
Refs syslabcom/scrum#2186
1 parent 42956ed commit d65b93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recensio/plone/browser/homepage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def format_authors(self, brain):
5353
first_author = authors[0].to_object
5454
if not first_author:
5555
return ""
56-
firstname = first_author.firstname.strip()
56+
firstname = first_author.firstname.strip() if first_author.firstname else ""
5757
initial = firstname[0] + ". " if len(firstname) > 0 else ""
5858
lastname = first_author.lastname
5959
et_al = " et al." if len(authors) > 1 else ""

0 commit comments

Comments
 (0)