From e9fa6e860d58ae833082d488a96a40c9784ff3aa Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 18 Feb 2013 21:04:22 +0400 Subject: [PATCH] #757: update #autocomplete_to_extra method --- app/controllers/projects/build_lists_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects/build_lists_controller.rb b/app/controllers/projects/build_lists_controller.rb index 5aa1e8349..c274d83db 100644 --- a/app/controllers/projects/build_lists_controller.rb +++ b/app/controllers/projects/build_lists_controller.rb @@ -117,7 +117,7 @@ class Projects::BuildListsController < Projects::BaseController results = [] platforms.each{ |p| p.repositories.each{ |r| results << {id: r.id, label: "#{p.name}/#{r.name}", value: "#{p.name}/#{r.name}"} } } - bl = BuildList.where(id: params[:term]).first + bl = BuildList.where(id: params[:term], container_status: BuildList::BUILD_PUBLISHED).first results << {id: "#{bl.id}-build-list", value: bl.id, label: "#{bl.id} (#{bl.project.name} - #{bl.arch.name})"} if bl render json: results.to_json end