Mercurial > hg > soundsoftware-site
changeset 1419:fd6b09e93623 biblio_alt_search_auth
fixed name getter
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 18:23:24 +0100 |
parents | fab9719b189e |
children | b688fe79f593 |
files | plugins/redmine_bibliography/app/models/author.rb |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 18:20:02 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 18:23:24 2013 +0100 @@ -35,10 +35,12 @@ end def name - if self.authorships.first.nil? - "" - else - self.authorships.first.name + if self.name.nil? + if self.authorships.first.nil? + "" + else + self.authorships.first.name + end end end