Skip to content

Commit

Permalink
Merge pull request #374 from avdata99/fix_delete_url
Browse files Browse the repository at this point in the history
Fix delete URL for custom organizations
  • Loading branch information
wardi authored Jul 6, 2023
2 parents 3046c05 + fc83b9c commit a92778b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% if action == 'edit' %}
{% if h.check_access('group_delete', {'id': data.id}) and action=='edit' %}
{% set locale = h.dump_json({'content': _('Are you sure you want to delete this Organization?')}) %}
<a class="btn btn-danger pull-left" href="{% url_for controller='organization', action='delete', id=data.id %}" data-module="confirm-action" data-module-i18n="{{ locale }}">{% block delete_button_text %}{{ _('Delete') }}{% endblock %}</a>
<a class="btn btn-danger pull-left" href="{% url_for controller=group_type, action='delete', id=data.id %}" data-module="confirm-action" data-module-i18n="{{ locale }}">{% block delete_button_text %}{{ _('Delete') }}{% endblock %}</a>
{% endif %}
{% endif %}
{% endblock %}
Expand Down

0 comments on commit a92778b

Please sign in to comment.