Only call commit() once and use translations in template
This commit is contained in:
parent
46cd8f3762
commit
00f323f9f5
@ -37,13 +37,12 @@ class TaskOrders(BaseDomainClass):
|
|||||||
|
|
||||||
for clin in task_order.clins:
|
for clin in task_order.clins:
|
||||||
db.session.delete(clin)
|
db.session.delete(clin)
|
||||||
db.session.commit()
|
|
||||||
|
|
||||||
if number != task_order.number:
|
if number != task_order.number:
|
||||||
task_order.number = number
|
task_order.number = number
|
||||||
db.session.add(task_order)
|
db.session.add(task_order)
|
||||||
db.session.commit()
|
|
||||||
|
|
||||||
|
db.session.commit()
|
||||||
TaskOrders.create_clins(task_order_id, clins)
|
TaskOrders.create_clins(task_order_id, clins)
|
||||||
|
|
||||||
return task_order
|
return task_order
|
||||||
|
@ -57,10 +57,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</legend>
|
</legend>
|
||||||
<select :id="'clins-' + clinIndex + '-jedi_clin_type'" :name="'clins-' + clinIndex + '-jedi_clin_type'">
|
<select :id="'clins-' + clinIndex + '-jedi_clin_type'" :name="'clins-' + clinIndex + '-jedi_clin_type'">
|
||||||
<option value="JEDI_CLIN_1">CLIN 01 : Unclassified</option>
|
<option value="JEDI_CLIN_1">{{ "forms.task_order.clin_01_label" | translate }}</option>
|
||||||
<option value="JEDI_CLIN_2">CLIN 02: Classified</option>
|
<option value="JEDI_CLIN_2">{{ "forms.task_order.clin_02_label" | translate }}</option>
|
||||||
<option value="JEDI_CLIN_3">CLIN 03: Unclassified</option>
|
<option value="JEDI_CLIN_3">{{ "forms.task_order.clin_03_label" | translate }}</option>
|
||||||
<option value="JEDI_CLIN_4">CLIN 04: Classified</option>
|
<option value="JEDI_CLIN_4">{{ "forms.task_order.clin_04_label" | translate }}</option>
|
||||||
</select>
|
</select>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user