Fix service id bug in template. Use current_service instead

This commit is contained in:
Adam Shimali
2016-04-05 14:05:25 +01:00
parent eade0ef971
commit dc7964efd7
2 changed files with 1 additions and 2 deletions

View File

@@ -45,7 +45,6 @@ def service_dashboard(service_id):
spent_this_month='0.00', spent_this_month='0.00',
statistics=add_rates_to(statistics), statistics=add_rates_to(statistics),
templates=templates, templates=templates,
service_id=str(service_id),
template_statistics=template_statistics) template_statistics=template_statistics)

View File

@@ -6,7 +6,7 @@
field_headings=['Template', 'Type', right_aligned_field_heading('Usage')] field_headings=['Template', 'Type', right_aligned_field_heading('Usage')]
) %} ) %}
{% call field() %} {% call field() %}
<a href="{{ url_for('.edit_service_template', service_id=service_id, template_id=item.template.id) }}"> <a href="{{ url_for('.edit_service_template', service_id=current_service.id, template_id=item.template.id) }}">
{{ item.template.name }} {{ item.template.name }}
</a> </a>
{% endcall %} {% endcall %}