Gravity PDF - Version 6.4.4

Version Description

  • Bug: Resolve HTML encoding issue in PDF when displaying Coupon field in Gravity Wiz eCommerce Perk's Product Table
  • Bug: Remove coupon line item in PDF when Gravity Wiz eCommerce Perk's Product Table in use
  • Bug: Resolve duplicate product table displayed in a legacy v3 template
  • Bug: Resolve PHP notice when displaying product table in legacy v3 template
  • Bug: Resolve PHP notice when displaying Section Break field in legacy v3 template
Download this release

Release Info

Developer Blue Liquid Designs
Plugin Icon 128x128 Gravity PDF
Version 6.4.4
Comparing to
See all releases

Code changes from version 6.4.3 to 6.4.4

README.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://gravitypdf.com/donate-to-plugin/
5
  Tags: gravityforms, gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 5.3
7
  Tested up to: 6.0
8
- Stable tag: 6.4.3
9
  Requires PHP: 7.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl.txt
@@ -106,6 +106,13 @@ If you aren't able to meet the v6 minimum requirements [you can download v5 whic
106
  16. A bunch of paid PDF designs are available, as well as additional functionality.
107
 
108
  == Changelog ==
 
 
 
 
 
 
 
109
 
110
  = 6.4.3 =
111
  * Bug: Open PDF "view" link in a new browser tab on Entry List page
5
  Tags: gravityforms, gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 5.3
7
  Tested up to: 6.0
8
+ Stable tag: 6.4.4
9
  Requires PHP: 7.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl.txt
106
  16. A bunch of paid PDF designs are available, as well as additional functionality.
107
 
108
  == Changelog ==
109
+
110
+ = 6.4.4 =
111
+ * Bug: Resolve HTML encoding issue in PDF when displaying Coupon field in Gravity Wiz eCommerce Perk's Product Table
112
+ * Bug: Remove coupon line item in PDF when Gravity Wiz eCommerce Perk's Product Table in use
113
+ * Bug: Resolve duplicate product table displayed in a legacy v3 template
114
+ * Bug: Resolve PHP notice when displaying product table in legacy v3 template
115
+ * Bug: Resolve PHP notice when displaying Section Break field in legacy v3 template
116
 
117
  = 6.4.3 =
118
  * Bug: Open PDF "view" link in a new browser tab on Entry List page
pdf.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
- Version: 6.4.3
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Blue Liquid Designs
7
  Author URI: https://blueliquiddesigns.com.au
@@ -28,7 +28,7 @@ if ( ! defined( 'ABSPATH' ) ) {
28
  /*
29
  * Set base constants we'll use throughout the plugin
30
  */
31
- define( 'PDF_EXTENDED_VERSION', '6.4.3' ); /* the current plugin version */
32
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
33
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
34
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
+ Version: 6.4.4
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Blue Liquid Designs
7
  Author URI: https://blueliquiddesigns.com.au
28
  /*
29
  * Set base constants we'll use throughout the plugin
30
  */
31
+ define( 'PDF_EXTENDED_VERSION', '6.4.4' ); /* the current plugin version */
32
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
33
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
34
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
src/Helper/Fields/Field_Products.php CHANGED
@@ -142,10 +142,11 @@ class Field_Products extends Helper_Abstract_Fields {
142
 
143
  <tbody class="contents">
144
  <?php
145
- foreach ( $products['products'] as $field_id => $product ) :
 
146
 
147
  /* Skip over Gravity Perks Ecommerce Fields */
148
- if ( class_exists( 'GP_Ecommerce_Fields' ) && in_array( $fields[ $field_id ]->type, [ 'tax', 'discount' ], true ) ) {
149
  continue;
150
  }
151
  ?>
@@ -196,7 +197,7 @@ class Field_Products extends Helper_Abstract_Fields {
196
  rowspan="<?php echo esc_attr( $gpecommerce->get_order_summary_item_count( $order_summary ) ); ?>"></td>
197
  <?php endif; ?>
198
  <td class="totals" style="<?php esc_attr( $gpecommerce->style( ".order-summary/tfoot/{$class}/td.column-3" ) ); ?>">
199
- <?php echo esc_html( $item['name'] ); ?>
200
  </td>
201
 
202
  <td class="totals" style="<?php esc_attr( $gpecommerce->style( ".order-summary/tfoot/{$class}/td.column-4" ) ); ?>">
142
 
143
  <tbody class="contents">
144
  <?php
145
+ foreach ( $products['products'] as $field_id => $product ):
146
+ $field_id = explode( '|', $field_id )[0];
147
 
148
  /* Skip over Gravity Perks Ecommerce Fields */
149
+ if ( class_exists( 'GP_Ecommerce_Fields' ) && in_array( $fields[ $field_id ]->type, [ 'tax', 'discount', 'coupon' ], true ) ) {
150
  continue;
151
  }
152
  ?>
197
  rowspan="<?php echo esc_attr( $gpecommerce->get_order_summary_item_count( $order_summary ) ); ?>"></td>
198
  <?php endif; ?>
199
  <td class="totals" style="<?php esc_attr( $gpecommerce->style( ".order-summary/tfoot/{$class}/td.column-3" ) ); ?>">
200
+ <?php Kses::output( $item['name'] ); ?>
201
  </td>
202
 
203
  <td class="totals" style="<?php esc_attr( $gpecommerce->style( ".order-summary/tfoot/{$class}/td.column-4" ) ); ?>">
src/Helper/Fields/Field_V3_Products.php CHANGED
@@ -37,11 +37,21 @@ class Field_V3_Products extends Field_Products {
37
  * @since 4.0
38
  */
39
  public function html( $value = '', $label = true ) {
 
 
 
 
 
 
40
  $html = parent::html( $value, $label );
41
 
 
 
 
 
42
  /* Format the order label correctly */
43
- $label = apply_filters( 'gform_order_label', esc_html__( 'Order', 'gravityforms' ), $this->form->id );
44
- $label = apply_filters( 'gform_order_label_' . $this->form->id, $label, $this->form->id );
45
 
46
  $heading = '<h2 class="default entry-view-section-break">' . esc_html( $label ) . '</h2>';
47
 
37
  * @since 4.0
38
  */
39
  public function html( $value = '', $label = true ) {
40
+ $output_enabled = false;
41
+ if ( $this->get_output() ) {
42
+ $this->disable_output();
43
+ $output_enabled = true;
44
+ }
45
+
46
  $html = parent::html( $value, $label );
47
 
48
+ if ( $output_enabled ) {
49
+ $this->enable_output();
50
+ }
51
+
52
  /* Format the order label correctly */
53
+ $label = apply_filters( 'gform_order_label', esc_html__( 'Order', 'gravityforms' ), $this->form['id'] );
54
+ $label = apply_filters( 'gform_order_label_' . $this->form['id'], $label, $this->form['id'] );
55
 
56
  $heading = '<h2 class="default entry-view-section-break">' . esc_html( $label ) . '</h2>';
57
 
src/assets/languages/gravity-forms-pdf-extended.pot CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "POT-Creation-Date: 2022-08-04 02:52+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
@@ -1722,11 +1722,11 @@ msgstr ""
1722
  msgid "Consent not given."
1723
  msgstr ""
1724
 
1725
- #: ../../Helper/Fields/Field_Products.php:213
1726
  msgid "Subtotal"
1727
  msgstr ""
1728
 
1729
- #: ../../Helper/Fields/Field_Products.php:218
1730
  msgid "Shipping (%s)"
1731
  msgstr ""
1732
 
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
+ "POT-Creation-Date: 2022-08-09 00:19+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
1722
  msgid "Consent not given."
1723
  msgstr ""
1724
 
1725
+ #: ../../Helper/Fields/Field_Products.php:214
1726
  msgid "Subtotal"
1727
  msgstr ""
1728
 
1729
+ #: ../../Helper/Fields/Field_Products.php:219
1730
  msgid "Shipping (%s)"
1731
  msgstr ""
1732
 
src/deprecated.php CHANGED
@@ -479,7 +479,7 @@ class GFPDFEntryDetail extends GFPDF_Deprecated_Abstract {
479
  $results['field'][] = $field->type !== 'section' ? $class->html() : $class->html( $config['section_content'] );
480
  } else {
481
  $class->enable_output();
482
- $field->type !== 'section' ? $class->html() : $class->html( $config['section_content'] );
483
  }
484
  }
485
  }
479
  $results['field'][] = $field->type !== 'section' ? $class->html() : $class->html( $config['section_content'] );
480
  } else {
481
  $class->enable_output();
482
+ $field->type !== 'section' ? $class->html() : $class->html( $config['section_content'] ?? false );
483
  }
484
  }
485
  }
vendor/composer/installed.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'gravitypdf/gravitypdf',
4
- 'pretty_version' => '6.4.3',
5
- 'version' => '6.4.3.0',
6
- 'reference' => '56df4b6a6516d5c8f3c288fd278dc8f001e40e10',
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -20,9 +20,9 @@
20
  'dev_requirement' => false,
21
  ),
22
  'gravitypdf/gravitypdf' => array(
23
- 'pretty_version' => '6.4.3',
24
- 'version' => '6.4.3.0',
25
- 'reference' => '56df4b6a6516d5c8f3c288fd278dc8f001e40e10',
26
  'type' => 'library',
27
  'install_path' => __DIR__ . '/../../',
28
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'gravitypdf/gravitypdf',
4
+ 'pretty_version' => '6.4.4',
5
+ 'version' => '6.4.4.0',
6
+ 'reference' => 'a3291b5fa91a3167414b2cd213c7adc81d2f3b70',
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
20
  'dev_requirement' => false,
21
  ),
22
  'gravitypdf/gravitypdf' => array(
23
+ 'pretty_version' => '6.4.4',
24
+ 'version' => '6.4.4.0',
25
+ 'reference' => 'a3291b5fa91a3167414b2cd213c7adc81d2f3b70',
26
  'type' => 'library',
27
  'install_path' => __DIR__ . '/../../',
28
  'aliases' => array(),