From 2578b49e249c06edd619d5b51164f3f12b1fbab8 Mon Sep 17 00:00:00 2001 From: jambun Date: Tue, 2 Aug 2016 13:23:03 +1000 Subject: [PATCH] don't forget top containers lacking types. they matter too --- backend/model/trees_mixin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/model/trees_mixin.rb b/backend/model/trees_mixin.rb index b5688f1..9f58b3e 100644 --- a/backend/model/trees_mixin.rb +++ b/backend/model/trees_mixin.rb @@ -83,7 +83,7 @@ def quick_containers def containers_ds TopContainer.linked_instance_ds .join(:archival_object, :id => :instance__archival_object_id) - .join(:enumeration_value___top_container_type, :id => :top_container__type_id) + .left_join(:enumeration_value___top_container_type, :id => :top_container__type_id) .left_join(:enumeration_value___sub_container_type_2, :id => :sub_container__type_2_id) .left_join(:enumeration_value___sub_container_type_3, :id => :sub_container__type_3_id) .filter(:archival_object__root_record_id => self.id)