Skip to content

Issue: Media used as fieldGroup inside a fieldGroup not working #590

Description

@BetterStoryTimer

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
Creating a fieldGroup with a nested fieldGroup of type media/image:

{
      "id": "selectedWorks",
      "labelField": "workTitle",
      "fields": [
        {
          "title": "Work Title",
          "name": "workTitle",
          "type": "string",
          "single": true
        },
        {
          "title": "Selected Media",
          "name": "selectedMedia",
          "type": "block",
          "fieldGroup": [
            "mediaSource"
          ]
        }
      ]
    },
    {
      "id": "mediaSource",
      "labelField": "sourceName",
      "fields": [
        {
          "title": "Source Name",
          "name": "sourceName",
          "type": "string",
          "single": false
        },
        {
          "title": "Source Path",
          "name": "sourcePath",
          "type": "image",
          "isPreviewImage": false,
          "multiple": false
        }
      ]
    }

Than assign it to my contentType:

 {
      "name": "dummypage",
      "pageBundle": true,
      "previewPath": null,
      "fields": [
        {
          "title": "Title",
          "name": "title",
          "type": "string"
        },
        {
          "title": "Works Media Selection",
          "name": "worksMediaSelection",
          "type": "block",
          "fieldGroup": [
            "selectedWorks"
          ]
        },
        {
          "title": "type",
          "name": "type",
          "type": "string"
        } 
      ]
    },

Expected behavior
Creating a list of images inside my selected Works Album and list all the picture below.

Screenshots
Resulting in just returning the Source Name.

---
title: dummy new one
worksMediaSelection:
  - workTitle: work
    selectedMedia:
      - sourceName: source
        fieldGroup: mediaSource
    fieldGroup: selectedWorks
type: dummypage
---

Desktop (please complete the following information):

  • OS: OSX 13.2
  • Browser Chrome, Safar...
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions