Skip to content

Commit 914cbf5

Browse files
authored
Merge pull request #170 from syslabcom/scrum-2186-homepage-firstname
Fix for homepage when author has no firstname
2 parents 42956ed + d65b93a commit 914cbf5

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)