statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.95k stars 524 forks source link

GraphQL doesn't load set from replicator field #7772

Closed lotarbo closed 1 month ago

lotarbo commented 1 year ago

Bug description

I have collection Pages with two blueprints: Page and Home. In both blueprints, i have replicator field blocks with sets. So it works like page builder. In Home blueprint i have 4 sets:

image

in Page only 3

image

Reason: i need different blocks in different page types.

So in graphiql i see this:

image image

But if i add Brands Set to Page blueprint - i can see what i need in Home type

image

How to reproduce

Create different blueprints in one collection with same replicator field name but different sets

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 9.52.4
PHP Version: 8.2.3
Composer Version: 2.5.4
Environment: local
Debug Mode: ENABLED
URL: some-site.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: NOT CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 0
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 3.4.7 PRO

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

None

Additional details

No response

duncanmcclean commented 1 month ago

Closing in favour of #5211, which is basically the same issue (using the same field name across multiple blueprints causing issues).