From 237295871360c3a61a42e4dee57942a1417a089d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 10 Dec 2025 15:40:17 +0100 Subject: [PATCH] fix: don't show incorrect notification about updated rentals --- src/Form/Service/ParticipantRentalsFieldHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Form/Service/ParticipantRentalsFieldHandler.php b/src/Form/Service/ParticipantRentalsFieldHandler.php index b6b995b..f128398 100644 --- a/src/Form/Service/ParticipantRentalsFieldHandler.php +++ b/src/Form/Service/ParticipantRentalsFieldHandler.php @@ -96,7 +96,9 @@ class ParticipantRentalsFieldHandler extends AbstractParticipantFieldHandler ); // Notify if rentals were cleared due to skipass duration change - if ([] !== $previousRentals && [] === $validSelections) { + // Only show notification if user had submitted rentals that got filtered out, + // not if the user intentionally cleared the selection (empty submission) + if ([] !== $previousRentals && [] === $validSelections && [] !== $selectedRentals) { $participant->addNotification( 'warning', 'Ausrüstung wurde entfernt (andere Skipass-Dauer ausgewählt)'