Refactor task order route to check for request args instead of request.referrer
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
{% from "components/edit_link.html" import EditLink %}
|
||||
|
||||
{% macro TOEditLink(task_order=None, screen=1, anchor=None) %}
|
||||
{% if task_order %}
|
||||
{{ EditLink(url_for("task_orders.new", screen=screen, task_order_id=task_order.id, _anchor=anchor)) }}
|
||||
{% else %}
|
||||
{{ EditLink(url_for("task_orders.new", screen=screen, _anchor=anchor)) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
Reference in New Issue
Block a user