#757: filtering containers by architecture for main platforms

This commit is contained in:
Vokhmin Alexey V 2013-02-21 18:51:49 +04:00
parent 28f539f0b4
commit 6369e10453
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ class BuildList < ActiveRecord::Base
def prepare_extra_containers def prepare_extra_containers
bls = BuildList.where(:id => extra_containers).published_container.accessible_by(current_ability, :read) bls = BuildList.where(:id => extra_containers).published_container.accessible_by(current_ability, :read)
bls = bls.where(:save_to_platform_id => save_to_platform.id) if save_to_platform && save_to_platform.main? bls = bls.where(:save_to_platform_id => save_to_platform.id, :arch_id => arch_id) if save_to_platform && save_to_platform.main?
self.extra_containers = bls.pluck(:id) self.extra_containers = bls.pluck(:id)
end end