Skip to content

Commit

Permalink
Merge pull request #1504 from GravityPDF/blacklist-field-type
Browse files Browse the repository at this point in the history
Use field type, and not a subtype when blacklisting from PDF
  • Loading branch information
jakejackson1 authored Feb 28, 2024
2 parents 0d0b98b + 21f7eaf commit a4f089f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Gravity PDF can be run on most modern shared web hosting without any issues. It
* Housekeeping: Improve Gravity PDF license activation success and error messages
* Security: Improve security of network requests to Gravity PDF licensing server
* Developer: Add `set_pdf_config( $config )` and `get_pdf_config()` methods to PDF Field classes
* Developer: In the PDF field blacklist, check using the original type and not with `$field->get_input_type()`

= 6.8.0 =
* Feature: Add PDF Download metabox to Gravity Flow Inbox for logged-in users with appropriate capability
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Model_PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,7 @@ public function field_middle_html_fields( $action, $field, $entry, $form, $confi
*/
public function field_middle_blacklist( $action, $field, $entry, $form, $config, $products, $blacklisted ) {
if ( $action === false ) {
if ( in_array( $field->get_input_type(), $blacklisted, true ) ) {
if ( in_array( $field->type, $blacklisted, true ) ) {
return true;
}
}
Expand Down

0 comments on commit a4f089f

Please sign in to comment.