# HG changeset patch # User Marcin Kuzminski # Date 2013-04-16 01:42:24 # Node ID 848492e2aafadd2ab01c0817f820b801570dcae9 # Parent 5a8918aba869c3d34fd33c8aaef61ef0292cc283 h.person, if author name is empty, use email as a fallback diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -456,8 +456,8 @@ def person(author, show_attr="username_a if user is not None: return person_getter(user) - # Still nothing? Just pass back the author name then - return _author + # Still nothing? Just pass back the author name if any, else the email + return _author or _email def person_by_id(id_, show_attr="username_and_name"):