#757: update #autocomplete_to_extra method

This commit is contained in:
Vokhmin Alexey V 2013-02-18 21:04:22 +04:00
parent 9005290c72
commit e9fa6e860d
1 changed files with 1 additions and 1 deletions

View File

@ -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