mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-07 04:16:31 +08:00
Fix storage location breadcrumbs for shared locations [SCI-11103]
This commit is contained in:
parent
a7e025736b
commit
2ce7c24df1
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ class StorageLocationsController < ApplicationController
|
|||
|
||||
storage_locations = []
|
||||
if params[:parent_id] || @storage_location
|
||||
location = (current_team.storage_locations.find_by(id: params[:parent_id]) || @storage_location)
|
||||
location = StorageLocation.find_by(id: params[:parent_id]) || @storage_location
|
||||
if location
|
||||
storage_locations.unshift(breadcrumbs_item(location))
|
||||
while location.parent
|
||||
|
|
Loading…
Add table
Reference in a new issue