Skip to content

Commit be2a8dc

Browse files
committed
gpcc-copy-to-conditionally-hidden-fields.php: Fixed an issue with copying to Multi Choice field.
1 parent 53c41be commit be2a8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-copy-cat/gpcc-copy-to-conditionally-hidden-fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
if ( is_array( $source_values ) ) {
5151
foreach ( $source_values as $input_id => $source_value ) {
52-
$target_input_id = str_replace( "{$source_field->id}.", "{$target['target']}.", $input_id );
52+
$target_input_id = "{$target['target']}.{$input_id}";
5353
$entry[ $target_input_id ] = $source_value;
5454
}
5555
} else {

0 commit comments

Comments
 (0)