chore: streamline property naming
This commit is contained in:
@@ -14,7 +14,7 @@ use App\Form\Service\Abstract\AbstractParticipantFieldHandler;
|
||||
*
|
||||
* This handler manages rental equipment selections for participants in the booking
|
||||
* creation process. It processes the rentals field from form submissions,
|
||||
* filters out age-inappropriate options and duration-inappropriate options, and
|
||||
* filters out age-inappropriate options and duration-inappropriate options, and
|
||||
* updates the participant DTO with only valid selections.
|
||||
*
|
||||
* Dependencies: dateOfBirth (for age evaluation) and skiPass (for duration filtering)
|
||||
@@ -68,7 +68,7 @@ class ParticipantRentalsFieldHandler extends AbstractParticipantFieldHandler
|
||||
if (null === $participant->skiPass) {
|
||||
// No skipass selected = clear all rental selections
|
||||
$participant->rentals = [];
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user