Remove nesting from route when not needed

This commit is contained in:
leigh-mil
2019-06-12 10:14:46 -04:00
parent 61de7a5adf
commit 4e46827335
7 changed files with 21 additions and 53 deletions

View File

@@ -100,7 +100,7 @@
<div class="task-order">
{% include "fragments/flash.html" %}
{% if task_order_id %}
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id, task_order_id=task_order_id) %}
{% set action = url_for("task_orders.update", task_order_id=task_order_id) %}
{% else %}
{% set action = url_for("task_orders.update", portfolio_id=portfolio.id) %}
{% endif %}