We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f299a4 commit 49a66a7Copy full SHA for 49a66a7
src/FieldType/Repeater.php
@@ -22,6 +22,16 @@ public static function register_field_type(): void {
22
23
$sub_field_group['graphql_type_name'] = $type_name;
24
$sub_field_group['graphql_field_name'] = $type_name;
25
+ $sub_field_group['locations'] = null;
26
+
27
+ if ( ! empty( $sub_field_group['__key'] ) ) {
28
+ $cloned_from = acf_get_field( $sub_field_group['__key'] );
29
+ $cloned_parent = ! empty( $cloned_from ) ? $field_config->get_parent_graphql_type_name( $cloned_from ) : null;
30
+ if ( ! empty( $cloned_parent ) ) {
31
+ $type_name = Utils::format_type_name( $cloned_parent . ' ' . $field_name );
32
+ }
33
34
35
36
$field_config->get_registry()->register_acf_field_groups_to_graphql(
37
[
0 commit comments