# HG changeset patch # User Marcin Kuzminski # Date 1366069344 -7200 # Node ID 848492e2aafadd2ab01c0817f820b801570dcae9 # Parent 5a8918aba869c3d34fd33c8aaef61ef0292cc283 h.person, if author name is empty, use email as a fallback diff -r 5a8918aba869 -r 848492e2aafa rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py Tue Apr 16 00:59:14 2013 +0200 +++ b/rhodecode/lib/helpers.py Tue Apr 16 01:42:24 2013 +0200 @@ -456,8 +456,8 @@ 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"):