Mercurial > hg > soundsoftware-site
changeset 1413:0e40e05048eb biblio_alt_search_auth
fixed institution getter for Author model
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 14:33:00 +0100 |
parents | 48d9b3ae9e1a |
children | 07444815c0bd |
files | plugins/redmine_bibliography/app/models/author.rb |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 14:29:01 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 14:33:00 2013 +0100 @@ -19,6 +19,10 @@ } def institution - self.authorship.first.institution + if self.authorships.first.nil? + "" + else + self.authorships.first.institution + end end end