app/views/store/shows/_show.html.haml in artfully_ose-1.2.0.pre.16 vs app/views/store/shows/_show.html.haml in artfully_ose-1.2.0.pre.17

- old
+ new

@@ -26,10 +26,10 @@ = hidden_field_tag :show_id, show.id = hidden_field_tag :ticket_type_id, ticket_type.id = hidden_field_tag :section_name, ticket_type.name = hidden_field_tag :ticket_price, ticket_type.price - - available = ticket_type.available(current_member) + - available = ticket_type.available("storefront", current_member) - if available == 0 %select{:style => "width:140px", :class => 'ticket-type-quantity', :id => 'quantity', :name => 'quantity'} %option SOLD OUT - else = select_tag :quantity, options_for_select((1..[10, available].min).to_a.map {|i| [pluralize(i, 'Ticket'), i]}), :style => "width:140px", :class => 'ticket-type-quantity'