Mercurial > hg > soundsoftware-site
changeset 1420:b688fe79f593 biblio_alt_search_auth
Reverted previous changes to name getter
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 18:36:13 +0100 |
parents | fd6b09e93623 |
children | 69d32b831d2b |
files | plugins/redmine_bibliography/app/models/author.rb |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 18:23:24 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 18:36:13 2013 +0100 @@ -34,13 +34,12 @@ end end + # todo: need to fix the name getter def name - if self.name.nil? - if self.authorships.first.nil? - "" - else - self.authorships.first.name - end + if self.authorships.first.nil? + "" + else + self.authorships.first.name end end