Skip to content

Cloning a field group within a flexible content field without selecting "prefix field names"  #172

@jasonbahl

Description

@jasonbahl

Description

When an ACF Field Group is cloned in a flexible content layout, the Schema fails to load if "prefix field names" is not selected.

Steps to reproduce

In a "vanilla" WordPress install with ACF Pro, WPGraphQL and WPGraphQL for ACF:

  1. Import the field groups provided in a .zip below
  2. Open GraphiQL
  3. See that the Schema Loads
  4. Search "AcfFieldGroup" in the Schema docs and see "PrimaryFieldGroup" and "SecondaryFieldGroup" as groups that implement the interface

CleanShot 2024-02-14 at 13 16 17

  1. In the "Cloned Group" field within the "Primary Field Group" flexible content layout, disable the "Prefix Field Names" setting and save.
  2. Open GraphiQL again
  3. See that the Schema no longer loads

CleanShot 2024-02-14 at 13 14 25

PHP or JSON export of the ACF Field Group(s)

acf-export-2024-02-14.json.zip

Additional context

No response

WPGraphQL Version

1.21.0

WPGraphQL For ACF Version

2.1.1

ACF (Advanced Custom Fields) Version. Free or Pro?

6.2.2 PRO

WordPress Version

6.4.3

PHP Version

8.2

Additional enviornment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.

Metadata

Metadata

Assignees

Labels

type: bugIssue that causes incorrect or unexpected behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions