mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 02:55:41 +00:00
Bug fix - check for null rather than just !
This commit is contained in:
@ -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; }
|
||||
|
||||
|
Reference in New Issue
Block a user