Skip to content

Commit

Permalink
Merge pull request #335 from Codeinwp/bugfix/pro/371
Browse files Browse the repository at this point in the history
Fixed repeater field issue with multiple groups
  • Loading branch information
vytisbulkevicius authored Aug 13, 2024
2 parents 7b26a04 + 641eba7 commit 6c69240
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/ppom.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ function __construct( $product_id = null ) {
}
}

// Retrieve fields with the repeater enabled.
$is_cloned = is_array( $this->fields ) ? array_filter( array_column( $this->fields, 'is_cloned' ) ) : array();
if ( isset( $this->ppom_settings->productmeta_validation ) && ! empty( $is_cloned ) ) {
$this->ppom_settings->productmeta_validation = 'on';
}
}

public static function get_instance( $product_id ) {
Expand Down

0 comments on commit 6c69240

Please sign in to comment.