Plugin Directory

Changeset 1651655


Ignore:
Timestamp:
05/05/2017 02:07:32 PM (9 years ago)
Author:
loushou
Message:
  • [fix] repairing advanced tools event search

loushou

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

Legend:

Unmodified
Added
Removed
  • opentickets-community-edition/trunk/inc/sys/pages/system-status.page.php

    r1634310 r1651655  
    336336                    <div class="field">
    337337                        <label><?php _e( 'Select an Event', 'opentickets-community-edition' ) ?></label>
    338                         <input type="hidden" name="event_id" value="" class="use-select2" data-action="qsot-adv-tools" data-sa="find-events" />
     338                        <select name="event_id" value="" class="use-select2" data-action="qsot-adv-tools" data-sa="find-events"></select>
    339339                    </div>
    340340
     
    363363            case 'find-events':
    364364                // if there is no query, return no results
    365                 if ( ! isset( $_POST['q'] ) || empty( $_POST['q'] ) )
     365                if ( ! isset( $_POST['q'], $_POST['q']['term'] ) || empty( $_POST['q']['term'] ) )
    366366                    wp_send_json( array( 's' => true, 'r' => array() ) );
    367367
     
    374374                    'paged' => $_POST['page'],
    375375                    'fields' => 'ids',
    376                     's' => $_POST['q'],
     376                    's' => $_POST['q']['term'],
    377377                    'meta_key' => '_start',
    378378                    'order' => 'asc',
     
    401401                $none = array( 'id' => 0, 'text' => __( '(none)', 'opentickets-community-edition' ) );
    402402                // if there is no query, return no results
    403                 if ( ! isset( $_POST['q'] ) || empty( $_POST['q'] ) )
     403                if ( ! isset( $_POST['q'], $_POST['q']['term'] ) || empty( $_POST['q']['term'] ) )
    404404                    wp_send_json( array( 's' => true, 'r' => array() ) );
    405405
    406                 $qs = preg_split( '#\s+#', $_POST['q'] );
     406                $qs = preg_split( '#\s+#', $_POST['q']['term'] );
    407407                $by_id = $by_name = $by_meta = array();
    408408                $ids = array_filter( array_map( 'absint', $qs ) );
     
    475475                $none = array( 'id' => 0, 'text' => __( '(none)', 'opentickets-community-edition' ) );
    476476                // if there is no query, return no results
    477                 if ( ! isset( $_POST['q'] ) || empty( $_POST['q'] ) )
     477                if ( ! isset( $_POST['q'], $_POST['q']['term'] ) || empty( $_POST['q']['term'] ) )
    478478                    wp_send_json( array( 's' => true, 'r' => array() ) );
    479479
    480                 $qs = preg_split( '#\s+#', $_POST['q'] );
     480                $qs = preg_split( '#\s+#', $_POST['q']['term'] );
    481481                // setup the base query parts
    482482                global $wpdb;
  • opentickets-community-edition/trunk/launcher.php

    r1647408 r1651655  
    44 * Plugin URI:  http://opentickets.com/
    55 * Description: Event Management and Online Ticket Sales Platform
    6  * Version:     2.8.2
     6 * Version:     2.8.3
    77 * Author:      Quadshot Software LLC
    88 * Author URI:  http://quadshot.com/
     
    5555            'fctm' => 'fc',
    5656            'always_reserve' => 0,
    57             'version' => '2.8.2',
     57            'version' => '2.8.3',
    5858            'min_wc_version' => '2.6.14',
    5959            'core_post_type' => 'qsot-event',
  • opentickets-community-edition/trunk/readme.txt

    r1647408 r1651655  
    171171
    172172== Changelog ==
     173
     174= 2.8.3 - May/5/2017 =
     175* [fix] repairing advanced tools event search
    173176
    174177= 2.8.2 - Apr/28/2017 =
Note: See TracChangeset for help on using the changeset viewer.