Skip to content

Commit 2be05e4

Browse files
authored
gpnf-use-all-fields-template-for-nested-entries.php: Updated to account for modifiers.
1 parent 76d6268 commit 2be05e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-nested-forms/gpnf-use-all-fields-template-for-nested-entries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
* displaying child entries in Nested Form fields via the {all_fields} and Nested Form field merge tags.
88
*/
99
add_filter( 'gp_template_output_nested-entry', function( $output, $template, $load, $args ) {
10-
return gw_all_fields_template()->replace_merge_tags( '{all_fields}', $args['nested_form'], $args['entry'], false, false, false, 'html' );
10+
return gw_all_fields_template()->replace_merge_tags( "{all_fields:{$args['modifiers']}}", $args['nested_form'], $args['entry'], false, false, false, 'html' );
1111
}, 10, 4 );

0 commit comments

Comments
 (0)