Mercurial > hg > soundsoftware-site
comparison plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 1253:29dd06e01be3 redmine-2.2-integration
renamed scope like for projects.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 05 Apr 2013 15:07:40 +0100 |
parents | b4b72f1eb644 |
children | 5ea1a213c7a5 |
comparison
equal
deleted
inserted
replaced
1252:fe3777d42b76 | 1253:29dd06e01be3 |
---|---|
217 end | 217 end |
218 | 218 |
219 def autocomplete_for_project | 219 def autocomplete_for_project |
220 @publication = Publication.find(params[:id]) | 220 @publication = Publication.find(params[:id]) |
221 | 221 |
222 @projects = Project.active.like(params[:q]).find(:all, :limit => 100) - @publication.projects | 222 @projects = Project.active.name_or_homepage_like(params[:q]).find(:all, :limit => 100) - @publication.projects |
223 logger.debug "Query for \"#{params[:q]}\" returned \"#{@projects.size}\" results" | 223 logger.debug "Query for \"#{params[:q]}\" returned \"#{@projects.size}\" results" |
224 render :layout => false | 224 render :layout => false |
225 end | 225 end |
226 | 226 |
227 def autocomplete_for_author | 227 def autocomplete_for_author |