#757: find build_list with container
This commit is contained in:
parent
cab6a7ab56
commit
9ecd26885b
|
@ -124,7 +124,8 @@ class Projects::BuildListsController < Projects::BaseController
|
||||||
|
|
||||||
def add_extra
|
def add_extra
|
||||||
if params[:extra_id] =~ /-build-list$/
|
if params[:extra_id] =~ /-build-list$/
|
||||||
subject = BuildList.find(params[:extra_id].gsub(/-build-list$/, ''))
|
id = params[:extra_id].gsub(/-build-list$/, '')
|
||||||
|
subject = BuildList.where(id: id, container_status: BuildList::BUILD_PUBLISHED).first
|
||||||
else
|
else
|
||||||
subject = Repository.find params[:extra_id]
|
subject = Repository.find params[:extra_id]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue