And also, I had to change the way of POST META was indexing values in array. So, in my case, I had to do something like this:
Replace:
$product_1_info = get_duplicate_field(‘product_1_info’);
if (is_array($product_1_info[1])) {
foreach($product_1_info[1] as $d) {
$moreinfo[] = $d;
}
}
To:
$product_1_info = get_duplicate_field(‘product_1_info’);
if (is_array($product_1_info)) {
foreach($product_1_info as $d) {
$moreinfo[] = $d;
}
}