Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
fix hidden attendee ticket preventing checkout
Dave Earleyc27ca25c0b97
diff --git a/backend/app/Validators/Rules/AttendeeQuestionRule.php b/backend/app/Validators/Rules/AttendeeQuestionRule.phpindex c87e49a67..87640c9e5 100644--- a/backend/app/Validators/Rules/AttendeeQuestionRule.php+++ b/backend/app/Validators/Rules/AttendeeQuestionRule.php@@ -2,9 +2,9 @@namespace HiEvents\Validators\Rules;+use HiEvents\DomainObjects\QuestionDomainObject;use Illuminate\Support\Collection;use Illuminate\Validation\ValidationException;-use HiEvents\DomainObjects\QuestionDomainObject;class AttendeeQuestionRule extends BaseQuestionRule{@@ -20,6 +20,7 @@ class AttendeeQuestionRule extends BaseQuestionRule$requiredQuestionIds = $this->questions->filter(function (QuestionDomainObject $question) use ($ticketId) {return $question->getRequired()+ && !$question->getIsHidden()&& $question->getTickets()?->map(fn($ticket) => $ticket->getId())->contains($ticketId);})->map(fn(QuestionDomainObject $question) => $question->getId());