Skip to content

Commit

Permalink
Fix repeater field issue with multiple groups
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Aug 9, 2024
1 parent a3726f4 commit 641eba7
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 641eba7

Please sign in to comment.