# HG changeset patch # User Chris Cannam # Date 1315600238 -3600 # Node ID 0f98ea9bf5fe344e36c5bcb31b0a15249aa00b21 # Parent 764e3dfb173b3e6fce944bb719457ec6f151762d Transplant fix for #289 from live diff -r 764e3dfb173b -r 0f98ea9bf5fe vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Sep 09 16:55:34 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Sep 09 21:30:38 2011 +0100 @@ -208,7 +208,7 @@ object_id = params[:object_id] @object_name = "publications[authorships_attributes][#{object_id}][search_results]" - authorships_list = Authorship.like_unique(params[:q]).find(:all, :limit => 100) + authorships_list = Authorship.like_unique(params[:q]).find(:all, :select => "name_on_paper,institution,email", :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"