Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 462:b02b2eb2a312 feature_36
Searching for publications via AJAX call; the publication ID is not being sent correctly, so still shows the current publication's associated projects in the select list.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 21 Jun 2011 01:27:41 +0100 |
parents | 841b2e40895d |
children | fbdfec975bfa |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Fri Jun 17 18:59:49 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Jun 21 01:27:41 2011 +0100 @@ -3,7 +3,8 @@ class PublicationsController < ApplicationController unloadable - before_filter :find_project_by_project_id + before_filter :find_project_by_project_id, :except => [:autocomplete_for_project] + def new @publication = Publication.new @@ -193,10 +194,10 @@ def autocomplete_for_project - # TODO luisf - Should This Be HERE??? @publication = Publication.find(params[:id]) - @projects = Project.active.like(params[:q]).find(:all, :limit => 100) - @publication.projects + +# @projects = Project.active.like(params[:q]).find(:all, :limit => 100) logger.debug "Query for \"#{params[:q]}\" returned \"#{@projects.size}\" results" render :layout => false end