#405: attach build_lists from extra_mass_builds
This commit is contained in:
parent
de2d08946f
commit
bb1e11e256
|
@ -689,6 +689,11 @@ class BuildList < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def prepare_extra_build_lists
|
def prepare_extra_build_lists
|
||||||
|
if mass_build && mass_build.extra_mass_builds.present?
|
||||||
|
extra_build_lists ||= []
|
||||||
|
extra_build_lists << BuildList.where(mass_build_id: mass_build.extra_mass_builds, arch_id: arch_id).pluck(:id)
|
||||||
|
extra_build_lists.flatten!
|
||||||
|
end
|
||||||
return if extra_build_lists.blank?
|
return if extra_build_lists.blank?
|
||||||
bls = BuildList.for_extra_build_lists(extra_build_lists, current_ability, save_to_platform)
|
bls = BuildList.for_extra_build_lists(extra_build_lists, current_ability, save_to_platform)
|
||||||
if save_to_platform
|
if save_to_platform
|
||||||
|
|
Loading…
Reference in New Issue