# HG changeset patch # User luisf # Date 1307536667 -3600 # Node ID 565f82b8ff9cb80bcc5bbba3e315238fe4855a06 # Parent 995d4c99843d3c074a7dc92d345fd3217d7d36be added the uniq option to the publicatioin models to remove duplicate authors diff -r 995d4c99843d -r 565f82b8ff9c vendor/plugins/redmine_bibliography/app/models/publication.rb --- a/vendor/plugins/redmine_bibliography/app/models/publication.rb Wed Jun 08 13:29:40 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/models/publication.rb Wed Jun 08 13:37:47 2011 +0100 @@ -4,7 +4,7 @@ unloadable has_many :authorships - has_many :authors, :through => :authorships + has_many :authors, :through => :authorships, :uniq => true has_one :bibtex_entry, :dependent => :destroy