changeset 676:4fcd6ca1825c feature_36

Transplant rev f3e35d639aa4 from live branch
author Chris Cannam
date Tue, 13 Sep 2011 17:17:27 +0100
parents 0f98ea9bf5fe
children ec6c2f6a33c4
files vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"