From 46ab6e40ebeaa117ed58e3dcbc0033d775c4db63 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 14 May 2019 18:31:19 +1000 Subject: [PATCH] Bug fix for build allocation - If the part did not have an image file the template failed to render --- InvenTree/build/templates/build/auto_allocate.html | 4 ++-- InvenTree/build/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/build/templates/build/auto_allocate.html b/InvenTree/build/templates/build/auto_allocate.html index f850d094b2..dc2160a006 100644 --- a/InvenTree/build/templates/build/auto_allocate.html +++ b/InvenTree/build/templates/build/auto_allocate.html @@ -22,8 +22,8 @@ Automatically allocate stock to this build? - - + + diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py index e4149c171b..93611bae45 100644 --- a/InvenTree/build/views.py +++ b/InvenTree/build/views.py @@ -101,7 +101,7 @@ class BuildAutoAllocate(AjaxUpdateView): context['build'] = build context['allocations'] = build.getAutoAllocations() except Build.DoesNotExist: - context['error'] = 'No matching buidl found' + context['error'] = 'No matching build found' return context