statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Replicator and Bard ignoring replicator_preview: false in grids #2362

Open andypillip opened 5 years ago

andypillip commented 5 years ago

Describe the bug Collapsed replicator fieldsets show a preview and even enumerate grid items – that's awesome! You even can select fields that shouldn't show in the preview by means of replicator_preview: false.

Unfortunately that doesn't work for fields in the next level, even though they are enumerated.

To Reproduce Steps to reproduce the behavior:

Fieldset:

fields:
  testfield:
    type: bard
    sets:
      gallery_set:
        fields:
          gallery:
            type: grid
            min_rows: 1
            fields:
              image:
                type: assets
                …

              caption:
                type: text
                replicator_preview: false
                …
  1. Add a field like the above to any page or collection fieldset
  2. In CP add a gallery to any page or collection
  3. Add some images and captions
  4. Collaps the block

Expected behavior The caption shouldn't show in the preview

Environment details (please complete the following information):