From e2942238a9036c10c5a64b6fec371ae31fdff82c Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 28 Jun 2021 13:10:41 +1000 Subject: [PATCH] Bug fix - check for null rather than just ! --- InvenTree/templates/js/forms.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/forms.js b/InvenTree/templates/js/forms.js index 4e8791f125..c90569d9c0 100644 --- a/InvenTree/templates/js/forms.js +++ b/InvenTree/templates/js/forms.js @@ -406,7 +406,11 @@ function updateFieldValues(fields, options) { if (field == null) { continue; } - var value = field.value || field.default || null; + var value = field.value; + + if (value == null) { + value = field.default; + } if (value == null) { continue; }