Skip to content

Commit

Permalink
Merge pull request #15 from mt-support/1.2.3-spotfix/pdf-extension
Browse files Browse the repository at this point in the history
1.2.3 spotfix/pdf extension
  • Loading branch information
andrasguseo authored Apr 27, 2023
2 parents 2f848d0 + 8874427 commit 85415d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
19 changes: 12 additions & 7 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== Event Tickets Extension: PDF Tickets ===
Contributors: ModernTribe
Donate link: http://m.tri.be/29
Contributors: theeventscalendar
Donate link: http://evnt.is/29
Tags: events, calendar
Requires at least: 4.5
Tested up to: 5.4.1
Requires PHP: 5.6
Stable tag: 1.2.2
License: GPL version 2
Requires at least: 5.8.5
Tested up to: 6.2
Requires PHP: 7.4
Stable tag: 1.2.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Event Tickets' RSVP, Tribe Commerce PayPal, WooCommerce, and/or Easy Digital Downloads ticket emails will become PDF files saved to your Uploads directory and then get attached to the ticket emails.
Expand Down Expand Up @@ -35,6 +35,11 @@ We're always interested in your feedback, and our [premium forums](https://theev

== Changelog ==

= [1.2.3] 2023-04-27 =

* Fix - Update the attachment handling for WooCommerce tickets in Outlook.
* Tweak - "WooCommerce tested up to" version changed from `4.2.0` to `7.6.1`.

= [1.2.2] 2020-06-10 =

* Fix - Update mPDF library version so this plugin now works with PHP 7.4. [EXT-211]
Expand Down
10 changes: 5 additions & 5 deletions tribe-ext-pdf-tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
/**
* Plugin Name: Event Tickets Extension: PDF Tickets
* Description: Event Tickets' RSVP, Tribe Commerce PayPal, WooCommerce, and/or Easy Digital Downloads ticket emails will become PDF files saved to your Uploads directory and then get attached to the ticket emails.
* Version: 1.2.2
* Version: 1.2.3
* Extension Class: Tribe__Extension__PDF_Tickets
* Plugin URI: https://theeventscalendar.com/extensions/pdf-tickets/
* GitHub Plugin URI: https://github.com/mt-support/tribe-ext-pdf-tickets
* Author: Modern Tribe, Inc.
* Author URI: http://m.tri.be/1971
* Author: The Events Calendar
* Author URI: http://evnt.is/1971
* License: GPL version 2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: tribe-ext-pdf-tickets
* WC tested up to: 4.2.0
* WC tested up to: 7.6.1
*/

use Mpdf\Mpdf;
Expand Down Expand Up @@ -946,7 +946,7 @@ private function add_woo_pdf_to_attachments_list( $attendee_id, $file_name ) {
}

// add to array with key like `woo_84202_1`
$this->attachments_array[ $order_id_array_key . '_' . $this->attachment_count ] = $file_name;
$this->attachments_array[ $order_id_array_key . '_' . $this->attachment_count . '.pdf' ] = $file_name;
}

/**
Expand Down

0 comments on commit 85415d5

Please sign in to comment.