Fix duplicate firm task creation when syncing system defaults

This commit is contained in:
A R R R Associates
2026-09-01 13:52:19 +05:30
parent 67c63ca94e
commit d51ef3bbbb
3 changed files with 334 additions and 1 deletions
@@ -58,7 +58,7 @@
<p class="text-sm text-slate-500">Create a task template for this firm and service.</p>
</div>
{% if default_tasks|length > 0 %}
<form method="post" action="/services/catalogue/{{ service.id }}/defaults/copy-to-firm">
<form method="post" action="/services/catalogue/{{ service.id }}/firm-tasks/sync-system-defaults">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<button class="rounded-xl border border-brand-300 px-4 py-2 text-sm font-medium text-brand-700 hover:bg-brand-50" type="submit">Copy System Defaults</button>
</form>