Revision 1419:fd6b09e93623

View differences:

plugins/redmine_bibliography/app/models/author.rb
35 35
  end
36 36

  
37 37
  def name
38
    if self.authorships.first.nil?
39
      ""
40
    else
41
      self.authorships.first.name
38
    if self.name.nil?
39
      if self.authorships.first.nil?
40
        ""
41
      else
42
        self.authorships.first.name
43
      end
42 44
    end
43 45
  end
44 46

  

Also available in: Unified diff