mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
Bug fix in build views
- Untested code path meant variable was not being set
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user