mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
parent
0865b39c38
commit
cb7960fc3f
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ class TicketPurchasesController < ApplicationController
|
|||
|
||||
def create
|
||||
current_user.ticket_purchases.by_conference(@conference).unpaid.destroy_all
|
||||
message = TicketPurchase.purchase(@conference, current_user, params[:tickets][0])
|
||||
message = TicketPurchase.purchase(@conference, current_user, params[:tickets].try(:first))
|
||||
if message.blank?
|
||||
if current_user.ticket_purchases.by_conference(@conference).unpaid.any?
|
||||
redirect_to new_conference_payment_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue