Fix FLEXIAPI-354 Fix contact deletion

This commit is contained in:
Timothée Jaussoin 2025-07-15 11:53:47 +02:00
parent 005072e301
commit dcb071b5bc
2 changed files with 6 additions and 5 deletions

View file

@ -64,6 +64,7 @@ v2.0
- Fix FLEXIAPI-352 Add missing errors box in the password change form
- Fix FLEXIAPI-356 Cleanup and reorganize the pipeline to mutualize some things and save time
- Fix FLEXIAPI-355 Add withoutGlobalScope() to the Account ContactVcardList resolver
- Fix FLEXIAPI-354 Fix contact deletion
v1.6
----

View file

@ -12,15 +12,15 @@
@section('content')
<h2>{{ __('Delete') }}</h2>
<div>
<p>{{ __('You are going to permanently delete the following element. Please confirm your action.') }}</p>
<p><b>{{ $contact->identifier }}</b></p>
</div>
<form method="POST" action="{{ route('admin.account.contact.destroy', [$account]) }}" accept-charset="UTF-8">
@csrf
@method('delete')
<div>
<p>{{ $device->user_agent }}</p>
<p><b>{{ $contact->identifier }}</b></p>
</div>
<input name="account_id" type="hidden" value="{{ $account->id }}">
<input name="contact_id" type="hidden" value="{{ $contact->id }}">
<div>