2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Catch recursive tree error for part / variant relationship

This commit is contained in:
Oliver
2021-07-21 21:10:31 +10:00
parent dad9239a1c
commit df48df8119
2 changed files with 13 additions and 1 deletions

View File

@ -350,6 +350,12 @@ function constructFormBody(fields, options) {
for(field in fields) {
fields[field].name = field;
// If any "instance_filters" are defined for the endpoint, copy them across (overwrite)
if (fields[field].instance_filters) {
fields[field].filters = Object.assign(fields[field].filters || {}, fields[field].instance_filters);
}
var field_options = displayed_fields[field];
// Copy custom options across to the fields object