mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix in build views
- Untested code path meant variable was not being set
This commit is contained in:
parent
80771beee9
commit
62f007529e
@ -518,7 +518,9 @@ class BuildItemCreate(AjaxCreateView):
|
||||
part = Part.objects.get(pk=part_id)
|
||||
except Part.DoesNotExist:
|
||||
part = None
|
||||
|
||||
else:
|
||||
part = None
|
||||
|
||||
if build_id:
|
||||
try:
|
||||
build = Build.objects.get(pk=build_id)
|
||||
|
Loading…
Reference in New Issue
Block a user