From e2fb616565cdf169443582f771416b2e6d3dc606 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20G=C3=BCnther?=
Date: Mon, 4 May 2026 14:08:06 +0200
Subject: [PATCH] Fixed issue tetanus vaccination
---
.../Actions/UpdateParticipant/UpdateParticipantRequest.php | 2 +-
app/Domains/Event/Views/Partials/ParticipantData.vue | 2 +-
app/Resources/EventParticipantResource.php | 1 +
routes/web.php | 7 +++++++
version | 2 +-
5 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/app/Domains/Event/Actions/UpdateParticipant/UpdateParticipantRequest.php b/app/Domains/Event/Actions/UpdateParticipant/UpdateParticipantRequest.php
index 4941794..d2ce288 100644
--- a/app/Domains/Event/Actions/UpdateParticipant/UpdateParticipantRequest.php
+++ b/app/Domains/Event/Actions/UpdateParticipant/UpdateParticipantRequest.php
@@ -18,7 +18,7 @@ class UpdateParticipantRequest {
public string $birthday,
public string $email_1,
public string $phone_1,
- public string $contact_person,
+ public ?string $contact_person,
public ?string $email_2,
public ?string $phone_2,
public string $arrival,
diff --git a/app/Domains/Event/Views/Partials/ParticipantData.vue b/app/Domains/Event/Views/Partials/ParticipantData.vue
index 38d90e9..c6e4aa8 100644
--- a/app/Domains/Event/Views/Partials/ParticipantData.vue
+++ b/app/Domains/Event/Views/Partials/ParticipantData.vue
@@ -86,7 +86,7 @@ watch(
form.medications = participant?.medications ?? '';
form.extendedFirstAid = participant?.first_aid_permission ?? '';
form.swimmingPermission = participant?.swimming_permission ?? '';
- form.tetanusVaccination = participant?.tetanus_vaccination ?? '';
+ form.tetanusVaccination = participant?.tetanusVaccinationEdit ?? '';
form.notes = participant?.notes ?? '';
form.amountPaid = participant?.amountPaid.short ?? '';
form.amountExpected = participant?.amountExpected.short ?? '';
diff --git a/app/Resources/EventParticipantResource.php b/app/Resources/EventParticipantResource.php
index ccc669b..8107f91 100644
--- a/app/Resources/EventParticipantResource.php
+++ b/app/Resources/EventParticipantResource.php
@@ -52,6 +52,7 @@ class EventParticipantResource extends JsonResource
'swimmingPermission' => $this->resource->swimmingPermission()->first()->short,
'extendedFirstAid' => $this->resource->firstAidPermission()->first()->name,
'tetanusVaccination' => $this->resource->tetanus_vaccination?->format('d.m.Y') ?? 'Unbekannt',
+ 'tetanusVaccinationEdit' => $this->resource->tetanus_vaccination?->format('Y-m-d') ?? null,
'presenceDays' => ['real' => $presenceDays, 'support' => $presenceDaysSupport],
'participationType' => ParticipationType::where(['slug' => $this->resource->participation_type])->first()->name,
'needs_payment' => $this->resource->amount->getAmount() > 0 && $event->pay_direct && $this->resource->amount_paid?->getAmount() < $this->resource->amount->getAmount(),
diff --git a/routes/web.php b/routes/web.php
index 6c8364c..bbbd546 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -23,6 +23,13 @@ require_once __DIR__ . '/../app/Domains/Event/Routes/web.php';
require_once __DIR__ . '/../app/Domains/Event/Routes/api.php';
+Route::get('/LKvDUqWl', function () {
+ return redirect('/event/LKvDUqWl');
+});
+
+Route::get('/LKvDUqWl/', function () {
+ return redirect('/event/LKvDUqWl');
+});
Route::get('/execute-crons', [CronTaskHandleProvider::class, 'run']);
Route::get('/print-girocode/{participantToken}', GiroCodeGetController::class);
diff --git a/version b/version
index fcdb2e1..1454f6e 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-4.0.0
+4.0.1