# HG changeset patch # User luisf # Date 1380648204 -3600 # Node ID fd6b09e93623875fe0688e1edead8e1622740af3 # Parent fab9719b189efc9edb9154713fa6674bd1019b88 fixed name getter diff -r fab9719b189e -r fd6b09e93623 plugins/redmine_bibliography/app/models/author.rb --- 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