Revision 1417:1df2db7f0e4d plugins/redmine_bibliography/app

View differences:

plugins/redmine_bibliography/app/controllers/publications_controller.rb
231 231
      @results << user unless authors_list.include?(user.author)
232 232
    end
233 233

  
234
    logger.debug { "Autocomplete_for_author results --> #{@results}" }
235

  
234 236
    render :layout => false
235 237
  end
236 238

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

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

  
37 45
end

Also available in: Unified diff