Pass existing task order to the Form
Passing the existing task order to the Form provides all of the existing data to the Form. Previously, if a csp estimate was already uploaded and then the funding page was edited without changing the upload, the csp estimate was overwritten because nothing was passed in that field to the form.
This commit is contained in:
parent
50f0843caf
commit
c302ddf2d7
@ -133,7 +133,7 @@ class UpdateTaskOrderWorkflow(ShowTaskOrderWorkflow):
|
||||
if "unclassified_form" in self._section and not app.config.get("CLASSIFIED")
|
||||
else "form"
|
||||
)
|
||||
self._form = self._section[form_type](self.form_data)
|
||||
self._form = self._section[form_type](self.form_data, obj=self.task_order)
|
||||
|
||||
@property
|
||||
def form(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user