mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Skip nested objects
This commit is contained in:
parent
9f3f07aff3
commit
c8085ad39d
@ -218,14 +218,24 @@ function constructCreateForm(url, fields, options={}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
field_names.forEach(function(name) {
|
for (var idx = 0; idx < field_names.length; idx++) {
|
||||||
|
|
||||||
|
var name = field_names[idx];
|
||||||
|
|
||||||
var field = fields[name];
|
var field = fields[name];
|
||||||
|
|
||||||
|
// Skip field types which are simply not supported
|
||||||
|
switch (field.type) {
|
||||||
|
case 'nested object':
|
||||||
|
continue;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
var f = constructField(name, field, options);
|
var f = constructField(name, field, options);
|
||||||
|
|
||||||
html += f;
|
html += f;
|
||||||
});
|
}
|
||||||
|
|
||||||
var modal = '#modal-form';
|
var modal = '#modal-form';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user