# HG changeset patch # User luisf # Date 1380648973 -3600 # Node ID b688fe79f59325470ecb17dadc6eb13106fbf00e # Parent fd6b09e93623875fe0688e1edead8e1622740af3 Reverted previous changes to name getter diff -r fd6b09e93623 -r b688fe79f593 plugins/redmine_bibliography/app/models/author.rb --- 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