Skip to content

Commit

Permalink
Merge pull request #3127 from the-events-calendar/fix/ET-2148-rebased…
Browse files Browse the repository at this point in the history
…-undefined-provider

Fix/et 2148 rebased undefined provider
  • Loading branch information
Camwyn authored Jul 24, 2024
2 parents 9261ee9 + 00fc514 commit e21e236
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"ignoreProperties": ["container-type"]
}
]
}
},
"ignoreFiles": [
"src/resources/postcss/utilities/**"
]
}
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ Check out our extensive [knowledgebase](https://evnt.is/18wm) for articles on us

= [5.13.0.1] 2024-07-24 =

* Fix - Stellar Sale's banner copy. [TECTRIA-204]
* Fix - Stellar Sale's banner copy. [TEC-5121]
* Fix - Added missing global property for javascript undefined error `Uncaught TypeError: format is undefined`. This happened during ticket checkout. [ET-2148]

= [5.13.0] 2024-07-22 =

Expand Down
3 changes: 1 addition & 2 deletions src/Tickets/Blocks/Tickets/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public function render( $attributes = [] ) {
public function assets() {
// Check whether we use v1 or v2. We need to update this when we deprecate tickets v1.
$tickets_js = tribe_tickets_new_views_is_enabled() ? 'v2/tickets-block.js' : 'tickets-block.js';

$plugin = Tickets_Main::instance();
$plugin = Tickets_Main::instance();

tribe_asset(
$plugin,
Expand Down
7 changes: 6 additions & 1 deletion src/resources/js/v2/tickets-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,12 @@ tribe.tickets.block = {
const $ticketsBlock = $document.find( obj.selectors.container );
// Bind events for each tickets block.
$ticketsBlock.each( function( index, block ) {
obj.bindEvents( $( block ) );
const $container = $( block );
obj.bindEvents( $container );

// Initialize provider we use for prices.
const $form = $container.find( obj.selectors.form );
obj.tribe_tickets_provider = $form.data( 'provider' );
} );
};

Expand Down

0 comments on commit e21e236

Please sign in to comment.