mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Bug fix for stock item creation form
This commit is contained in:
parent
dcc7ee4eae
commit
25701c0c1c
4 changed files with 16 additions and 3 deletions
|
|
@ -873,8 +873,15 @@ Future<void> launchApiForm(
|
|||
}
|
||||
|
||||
// Add instance value to the field
|
||||
field.data["instance_value"] = modelData[fieldName];
|
||||
dynamic model_value = modelData[fieldName];
|
||||
|
||||
if (model_value != null) {
|
||||
field.data["instance_value"] = model_value;
|
||||
|
||||
if (field.data["value"] == null) {
|
||||
field.data["value"] = model_value;
|
||||
}
|
||||
}
|
||||
formFields.add(field);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue