Plugin Directory

Changeset 1368520


Ignore:
Timestamp:
03/10/2016 06:01:55 PM (10 years ago)
Author:
loushou
Message:
  • [fix] repaired 'remove reservation' buttons
  • [fix] solved issue for users who order tickets from the same event more than once

loushou

Location:
opentickets-community-edition/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • opentickets-community-edition/trunk/inc/event-area/general-admission-area-type.class.php

    r1367916 r1368520  
    713713        $stati = $zoner->get_stati();
    714714
     715        // get information about the current user, so we can identify them
     716        $current_user = $zoner->current_user();
     717        $current_user_id = get_current_user_id();
     718
    715719        // aggregate the args used for the remote function
    716720        $rargs = array(
  • opentickets-community-edition/trunk/inc/event-area/general-admission-zoner.class.php

    r1367916 r1368520  
    212212
    213213        // tally all records for this event before this lock.
    214         $total_before_lock = $this->find( array( 'event_id' => $args['event_id'], 'state' => '*', 'fields' => 'total', 'before' => $lock->since ) );
    215         $my_total_before_lock = $this->find( array( 'event_id' => $args['event_id'], 'state' => '*', 'fields' => 'total', 'before' => $lock->since, 'ticket_type_id' => $args['ticket_type_id'], 'customer_id' => $args['customer_id'] ) );
     214        $total_before_lock = $this->find( array(
     215            'event_id' => $args['event_id'],
     216            'state' => '*',
     217            'fields' => 'total',
     218            'before' => $lock->since,
     219        ) );
     220        $my_total_before_lock = $this->find( array(
     221            'event_id' => $args['event_id'],
     222            'state' => '*',
     223            'order_id' => array_unique( array( 0, isset( WC()->session->order_awaiting_payment ) ? absint( WC()->session->order_awaiting_payment ) : 0 ) ),
     224            'fields' => 'total',
     225            'before' => $lock->since,
     226            'ticket_type_id' => $args['ticket_type_id'],
     227            'customer_id' => $args['customer_id'],
     228        ) );
    216229
    217230        // figure out the total available for the event, at the point of the lock. if there is no capacity, then default to the amount in the lock
  • opentickets-community-edition/trunk/launcher.php

    r1367916 r1368520  
    44 * Plugin URI:  http://opentickets.com/
    55 * Description: Event Management and Online Ticket Sales Platform
    6  * Version:     2.2.1
     6 * Version:     2.2.2
    77 * Author:      Quadshot Software LLC
    88 * Author URI:  http://quadshot.com/
     
    5454            'fctm' => 'fc',
    5555            'always_reserve' => 0,
    56             'version' => '2.2.1',
     56            'version' => '2.2.2',
    5757            'min_wc_version' => '2.4.12',
    5858            'core_post_type' => 'qsot-event',
  • opentickets-community-edition/trunk/readme.txt

    r1367916 r1368520  
    171171
    172172== Changelog ==
     173
     174= 2.2.2 - Mar/9/2016 =
     175* [fix] repaired 'remove reservation' buttons
     176* [fix] solved issue for users who order tickets from the same event more than once
    173177
    174178= 2.2.1 - Mar/8/2016 =
Note: See TracChangeset for help on using the changeset viewer.