Skip to content

Commit

Permalink
Merge pull request #146 from fnf-org/131-users-are-able-to-request-ti…
Browse files Browse the repository at this point in the history
…ckets-with-no-maximum-after-making-request

Fix the ability to set more tickets than max
  • Loading branch information
beingmattlevy authored May 13, 2024
2 parents 90a4f48 + 41b097f commit efaed92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/ticket_requests/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

= f.label :adults, 'Number of adult tickets' + " @ $#{@event.adult_ticket_price.to_i} each"
= f.number_field :adults, class: 'input-mini', min: 1, required: true,
max: (TicketRequest::TICKET_LIMITS[TicketRequest::ROLE_VOLUNTEER] unless form_action_name == :update),
max: @event.max_adult_tickets_per_request,
data: { default_price: @event.adult_ticket_price.to_i }

%strong.help-inline.inline-price
Expand Down

0 comments on commit efaed92

Please sign in to comment.