Skip to content

Commit 505c724

Browse files
authored
gw-capitilize-submitted-data.php: Fixed an issue with processing hidden list field.
1 parent 1d84084 commit 505c724

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gravity-forms/gw-capitilize-submitted-data.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ function gw_capitalize_submitted_data( $form ) {
2828
}
2929
} else {
3030
$input_key = sprintf( 'input_%s', $field['id'] );
31+
// Value hidden or empty, skip it.
32+
if ( empty( $_POST[ $input_key ] ) ) {
33+
continue;
34+
}
35+
3136
if ( $field->type == 'list' ) {
3237
$_POST[ $input_key ] = array_map( function( $value ) {
3338
return ucwords( strtolower( $value ) );

0 commit comments

Comments
 (0)