File tree 2 files changed +22
-2
lines changed 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ You can hide a row by adding a hook. Checkout this example:
260
260
261
261
* Enhancement: Nested forms can now also export entry meta values.
262
262
* Fixed: Nested form values could cause an exception.
263
+ * Fixed: Columns labels from Nested Form Fields no longer included the parent label.
263
264
264
265
= 2.3.7 on January 17, 2025 =
265
266
Original file line number Diff line number Diff line change @@ -69,11 +69,30 @@ public function getRows( ?array $entry = null ): iterable {
69
69
* @since 1.10
70
70
*/
71
71
protected function getSeparatedColumns (): array {
72
- $ fields = array_map ( function ( FieldInterface $ field ): array {
72
+ $ columns = array_map ( static function ( FieldInterface $ field ): array {
73
73
return $ field ->getColumns ();
74
74
}, array_values ( $ this ->getNestedFields () ) );
75
75
76
- return array_merge ( [], ...$ fields );
76
+ return array_map (
77
+ function ( $ column ): string {
78
+ return
79
+ gf_apply_filters (
80
+ [
81
+ 'gfexcel_field_label ' ,
82
+ $ this ->field ->get_input_type (),
83
+ $ this ->field ->formId ,
84
+ $ this ->field ->id ,
85
+ ],
86
+ sprintf (
87
+ '%s (%s) ' , // Nested field label (Wrapper label)
88
+ (string ) $ column ,
89
+ $ this ->getSubLabel ( $ this ->field )
90
+ ),
91
+ $ this ->field
92
+ );
93
+ },
94
+ array_merge ( [], ...$ columns )
95
+ );
77
96
}
78
97
79
98
/**
You can’t perform that action at this time.
0 commit comments