Skip to content

Commit

Permalink
release: fixes
Browse files Browse the repository at this point in the history
- Fixed error when products with PPOM fields are not added to the cart
  • Loading branch information
vytisbulkevicius authored May 20, 2024
2 parents c52f707 + 5274e37 commit c95148c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function ppom_check_validation( $product_id, $post_data, $passed = true ) {

$data_name = sanitize_key( $field['data_name'] );

if ( ! empty($ppom_posted_fields[$data_name]) && $ppom_posted_fields[$data_name] !== strip_tags( $ppom_posted_fields[$data_name] ) ) {
if ( ! empty($ppom_posted_fields[$data_name]) && is_string( $ppom_posted_fields[$data_name] ) && $ppom_posted_fields[$data_name] !== strip_tags( $ppom_posted_fields[$data_name] ) ) {
$passed = false;
}

Expand Down

0 comments on commit c95148c

Please sign in to comment.