diff plugins/redmine_bibliography/app/models/author.rb @ 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
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