mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix - check for null rather than just !
This commit is contained in:
parent
ba2537d125
commit
e2942238a9
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user