2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Fixed templates, not sure why can't keep FileManager across forms... and also need to save form data

This commit is contained in:
eeintech
2021-05-04 17:35:27 -04:00
parent 64fb492b97
commit b4342d6203
6 changed files with 275 additions and 120 deletions

View File

@ -143,7 +143,7 @@ class MultiStepFormView(SessionWizardView):
try:
# Get template
template = self.form_steps_template[int(self.steps.current)]
template = self.form_steps_template[self.steps.index]
except IndexError:
return self.template_name
@ -157,7 +157,7 @@ class MultiStepFormView(SessionWizardView):
# Get form description
try:
description = self.form_steps_description[int(self.steps.current)]
description = self.form_steps_description[self.steps.index]
except IndexError:
description = ''
# Add description to form steps