From c302ddf2d764d64ae122e8369c191c7b5394ec3c Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Fri, 1 Feb 2019 13:15:47 -0500 Subject: [PATCH] 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. --- atst/routes/task_orders/new.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atst/routes/task_orders/new.py b/atst/routes/task_orders/new.py index 3a860311..5da589a4 100644 --- a/atst/routes/task_orders/new.py +++ b/atst/routes/task_orders/new.py @@ -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):