fixes the problem reported by @eeintech ?

This commit is contained in:
Matthias 2021-06-02 00:21:01 +02:00
parent 9d5b90190b
commit ee582a5490

View File

@ -414,6 +414,10 @@ class FileManagementFormView(MultiStepFormView):
'data': data,
'errors': {},
}
# make sure that the row was submitted - solves https://github.com/inventree/InvenTree/pull/1588#issuecomment-847889353
row_exist_check = [a for a in self.request.POST.keys() if a.startswith(f'row_{int(row_idx) +1}_')]
if True in row_exist_check:
self.rows.append(row)
# In the item selection step: update row data with mapping to form fields