mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Fix sublocation counter for deleted locations [SCI-11101]
This commit is contained in:
parent
96835a171e
commit
b43ce7c73f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Lists
|
|||
|
||||
@records =
|
||||
StorageLocation.joins('LEFT JOIN storage_locations AS sub_locations ' \
|
||||
'ON storage_locations.id = sub_locations.parent_id')
|
||||
'ON storage_locations.id = sub_locations.parent_id AND sub_locations.discarded_at IS NULL')
|
||||
.left_joins(:team, :created_by)
|
||||
.select(shared_sql_select)
|
||||
.select(
|
||||
|
|
Loading…
Reference in a new issue