Changeset 1660249
- Timestamp:
- 05/18/2017 02:33:36 PM (9 years ago)
- Location:
- opentickets-community-edition/trunk
- Files:
-
- 6 edited
-
inc/core/event-reporting.class.php (modified) (1 diff)
-
inc/sys/ajax.php (modified) (3 diffs)
-
inc/ticket/product.class.php (modified) (1 diff)
-
launcher.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
opentickets-community-edition/trunk/inc/core/event-reporting.class.php
r1634310 r1660249 209 209 // verify that we should be running the report right now, based on the submitted data 210 210 protected function _verify_run_report( $only_orig=false ) { 211 $run = true; 211 212 // if the nonce or report name is not set, bail 212 213 if ( ! isset( $_REQUEST['_n'], $_REQUEST['sa'] ) ) 213 returnfalse;214 $run = false; 214 215 215 216 // if the report name does not match this report, bail 216 if ( $_REQUEST['sa'] !== $this->slug )217 returnfalse;217 if ( isset( $_REQUEST['sa'] ) && $_REQUEST['sa'] !== $this->slug ) 218 $run = false; 218 219 219 220 // if the nonce does not match, then bail 220 if ( ! wp_verify_nonce( $_REQUEST['_n'], 'do-qsot-admin-report-ajax' ) ) 221 return false; 222 221 if ( isset( $_REQUEST['_n'] ) && ! wp_verify_nonce( $_REQUEST['_n'], 'do-qsot-admin-report-ajax' ) ) 222 $run = false; 223 224 // if the extra function is false, then fail to run 225 if ( ! $this->_extra_verify_run_report( $only_orig ) ) 226 $run = false; 227 228 return apply_filters( 'qsot-user-can-run-report-' . $this->group_slug, $run, $only_orig, $this );; 229 } 230 231 // extra logic to see if the user can run the report 232 protected function _extra_verify_run_report( $only_orig=false ) { 223 233 return true; 224 234 } -
opentickets-community-edition/trunk/inc/sys/ajax.php
r1634310 r1660249 258 258 public function aj_find_product( $resp ) { 259 259 // get the search string 260 $search = isset( $_REQUEST['q'] ) ? $_REQUEST['q'] : '';260 $search = isset( $_REQUEST['q'], $_REQUEST['q']['term'] ) ? $_REQUEST['q']['term'] : ''; 261 261 262 262 // setup serch args … … 265 265 'post_status' => array( 'publish' ), 266 266 'perm' => 'readable', 267 'posts_per_page' -1, 267 'posts_per_page' => -1, 268 'offset' => 0, 268 269 'meta_query' => array( 269 270 array( 'key' => '_sku', 'value' => $search, 'compare' => 'LIKE' ), … … 285 286 'post_status' => array( 'publish' ), 286 287 'perm' => 'readable', 287 'posts_per_page' -1, 288 'posts_per_page' => -1, 289 'offset' => 0, 288 290 's' => $search, 289 291 'fields' => 'ids', -
opentickets-community-edition/trunk/inc/ticket/product.class.php
r1647408 r1660249 181 181 // all ticket products should be hidden from the frontend shop. they should only be purchaseable via the ticket selection UI, because otherwise no event will be associated with it 182 182 if ( $is_ticket == 'yes' ) { 183 if ( version_compare( '3.0.0', WC_VERSION ) >= 0 ) {183 if ( version_compare( '3.0.0', WC_VERSION ) <= 0 ) { 184 184 wp_set_object_terms( $post_id, array( 'exclude-from-search', 'exclude-from-catalog' ), 'product_visibility', false ); 185 185 } else { -
opentickets-community-edition/trunk/launcher.php
r1651655 r1660249 4 4 * Plugin URI: http://opentickets.com/ 5 5 * Description: Event Management and Online Ticket Sales Platform 6 * Version: 2.8. 36 * Version: 2.8.4 7 7 * Author: Quadshot Software LLC 8 8 * Author URI: http://quadshot.com/ … … 55 55 'fctm' => 'fc', 56 56 'always_reserve' => 0, 57 'version' => '2.8. 3',57 'version' => '2.8.4', 58 58 'min_wc_version' => '2.6.14', 59 59 'core_post_type' => 'qsot-event', -
opentickets-community-edition/trunk/readme.txt
r1651655 r1660249 171 171 172 172 == Changelog == 173 174 = 2.8.4 - May/18/2017 = 175 * [new] added filter to run function checking if a report can run 176 * [fix] solved issue where ticket products were not being hidden from shop. must resave each product to resolve 177 * [fix] resolving order notes issue 178 * [fix] fixing product search for event ticket setup 173 179 174 180 = 2.8.3 - May/5/2017 = -
opentickets-community-edition/trunk/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-notes.php
r1340883 r1660249 26 26 $args = array( 27 27 'post_id' => $post->ID, 28 'orderby' => 'comment_ID', 29 'order' => 'DESC', 28 30 'approve' => 'approve', 29 'type' => 'order_note' 31 'type' => 'order_note', 30 32 ); 31 33 … … 40 42 if ( $notes ) { 41 43 42 foreach ( $notes as $note ) {44 foreach ( $notes as $note ) { 43 45 44 $note_classes = get_comment_meta( $note->comment_ID, 'is_customer_note', true ) ? array( 'customer-note', 'note' ) : array( 'note' ); 45 46 $note_classes = array( 'note' ); 47 $note_classes[] = get_comment_meta( $note->comment_ID, 'is_customer_note', true ) ? 'customer-note' : ''; 48 $note_classes[] = ( __( 'WooCommerce', 'woocommerce' ) === $note->comment_author ) ? 'system-note' : ''; 49 $note_classes = apply_filters( 'woocommerce_order_note_class', array_filter( $note_classes ), $note ); 46 50 ?> 47 <li rel="<?php echo absint( $note->comment_ID ) ; ?>" class="<?php echo implode( ' ', $note_classes); ?>">51 <li rel="<?php echo absint( $note->comment_ID ); ?>" class="<?php echo esc_attr( implode( ' ', $note_classes ) ); ?>"> 48 52 <div class="note_content"> 49 53 <?php echo wpautop( wptexturize( wp_kses_post( $note->comment_content ) ) ); ?> … … 51 55 <p class="meta"> 52 56 <abbr class="exact-date" title="<?php echo $note->comment_date; ?>"><?php printf( __( 'added on %1$s at %2$s', 'woocommerce' ), date_i18n( wc_date_format(), strtotime( $note->comment_date ) ), date_i18n( wc_time_format(), strtotime( $note->comment_date ) ) ); ?></abbr> 53 <?php if ( $note->comment_author !== __( 'WooCommerce', 'woocommerce' ) ) printf( ' ' . __( 'by %s', 'woocommerce' ), $note->comment_author ); ?> 54 <a href="#" class="delete_note"><?php _e( 'Delete note', 'woocommerce' ); ?></a> 57 <?php 58 if ( __( 'WooCommerce', 'woocommerce' ) !== $note->comment_author ) : 59 /* translators: %s: note author */ 60 printf( ' ' . __( 'by %s', 'woocommerce' ), $note->comment_author ); 61 endif; 62 ?> 63 <a href="#" class="delete_note" role="button"><?php _e( 'Delete note', 'woocommerce' ); ?></a> 55 64 </p> 56 65 </li> 57 66 <?php 58 67 } 59 60 68 } else { 61 69 echo '<li>' . __( 'There are no notes yet.', 'woocommerce' ) . '</li>'; … … 65 73 ?> 66 74 <div class="add_note"> 67 <h4><?php _e( 'Add note', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Add a note for your reference, or add a customer note (the user will be notified).', 'woocommerce' ) ); ?></h4>68 75 <p> 76 <label for="add_order_note"><?php _e( 'Add note', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Add a note for your reference, or add a customer note (the user will be notified).', 'woocommerce' ) ); ?></label> 69 77 <textarea type="text" name="order_note" id="add_order_note" class="input-text" cols="20" rows="5"></textarea> 70 78 </p> 71 79 <p> 80 <label for="order_note_type" class="screen-reader-text"><?php _e( 'Note type', 'woocommerce' ); ?></label> 72 81 <?php 73 82 $note_types = apply_filters( 'woocommerce_order_note_types', array( … … 81 90 <?php endforeach; ?> 82 91 </select> 83 < a href="#" class="add_note button"><?php _e( 'Add', 'woocommerce' ); ?></a>92 <button type="button" class="add_note button"><?php _e( 'Add', 'woocommerce' ); ?></button> 84 93 </p> 85 94 </div>
Note: See TracChangeset
for help on using the changeset viewer.