From 6369e10453bf490ab8ec15022b89d74e8da856ae Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 21 Feb 2013 18:51:49 +0400 Subject: [PATCH] #757: filtering containers by architecture for main platforms --- app/models/build_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 09cfd1b77..4180e1d31 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -486,7 +486,7 @@ class BuildList < ActiveRecord::Base def prepare_extra_containers 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) end