# HG changeset patch # User Chris Cannam # Date 1315930647 -3600 # Node ID 4fcd6ca1825c79b5f7caa02d8b67a4f6567e8f04 # Parent 0f98ea9bf5fe344e36c5bcb31b0a15249aa00b21 Transplant rev f3e35d639aa4 from live branch diff -r 0f98ea9bf5fe -r 4fcd6ca1825c vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Sep 09 21:30:38 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Sep 13 17:17:27 2011 +0100 @@ -208,7 +208,8 @@ object_id = params[:object_id] @object_name = "publications[authorships_attributes][#{object_id}][search_results]" - authorships_list = Authorship.like_unique(params[:q]).find(:all, :select => "name_on_paper,institution,email", :limit => 100) + # cc 20110909 -- revert to like instead of like_unique -- see #289 + authorships_list = Authorship.like(params[:q]).find(:all, :limit => 100) users_list = User.active.like(params[:q]).find(:all, :limit => 100) logger.debug "Query for \"#{params[:q]}\" returned \"#{authorships_list.size}\" authorships and \"#{users_list.size}\" users"