mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-21 15:35:16 +00:00
Fixes
This commit is contained in:
1 parent
2bb86ff22b
commit
4d1eb51bc4
3 files changed
+51
-3
No files matched your search
@@ -295,8 +295,11 @@ class StockLocationList(generics.ListCreateAPIView):
|
||||
|
||||
cascade = str2bool(params.get('cascade', False))
|
||||
|
||||
# Do not filter by location
|
||||
if loc_id is None:
|
||||
pass
|
||||
# Look for top-level locations
|
||||
if isNull(loc_id):
|
||||
elif isNull(loc_id):
|
||||
|
||||
# If we allow "cascade" at the top-level, this essentially means *all* locations
|
||||
if not cascade:
|
||||
|
||||
Reference in new issue
Block a user