Skip to content

summaryTitle not replacing title in RepeatingGroup #16376

@xmrsa

Description

@xmrsa

Description of the bug

When having a repeating group in a repeating group, the summaryTitle had no effect on the result in the Summary2-component (no matter what value I tried for the replacement text). The definition of the component started like this:

     {
        "dataModelBindings": {
          "group": "SkjemaData.EksportA.LandPost"
        },
        "id": "S04-RepeatingGroup-eksport-land-beloep-A",
        "type": "RepeatingGroup",
        "textResourceBindings": {
          "add_button_full": [
            "concat",
            ["text", "lang.RepeatingGroup-legg-til-nytt-land.add_button"],
            " ",
            [
              "optionLabel",
              "Level2Options",
              ["dataModel", "SkjemaData.EksportA.kodeNiv2"]
            ]
          ],
          "summaryTitle":" ",
          "title": [
            "concat",
            [
              "text",
              "S04_Eksport.RepeatingGroup-eksport-land-beloep.title.del1"
            ],
            " ",
            [
              "optionLabel",
              "Level2Options",
              ["dataModel", "SkjemaData.EksportA.kodeNiv2"]
            ],
            " ",
            [
              "text",
              "S04_Eksport.RepeatingGroup-eksport-land-beloep.title.del3"
            ]
          ],
          "description": "S04_Eksport.RepeatingGroup-eksport-land-beloep.description"
        },

Steps To Reproduce

Open this repo and try it:
https://altinn.studio/repos/xmrsa/ra0692-01.git

Additional Information

Link to discussion on Slack: https://digdir-samarbeid.slack.com/archives/C02EJ9HKQA3/p1758026394993649

Metadata

Metadata

Assignees

Labels

kind/bugUsed when there is a defect / something is not working as it should.squad/utformingIssues that belongs to the named squad.status/triage

Type

Projects

Status

No status

Status

👷 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions