Skip to content

Receipt is unable to show variables in appReceiver #627

Description

@tina-ahm

Description of the bug

When setting the appReceiver text resource with variables in an application the receipt does not fetch the variables, but rather shows the text resource as is. The expected behaviour is that the app receiver would be shown in the same manner as in the receipt shown when submitting a form.

Steps To Reproduce

  1. Add a variable to the value the appReceiver text resource in an Altinn form. E.g.:
    {
      "id": "appReceiver",
      "value": "{0} Kommune",
      "variables": [
        {
          "key": "FlatData.KommuneNavn",
          "dataSource": "dataModel.DataModel",
          "defaultValue": " "
        }
      ]
    },
  1. Submit the form and open the receipt from the Altinn inbox.
  2. See that the appReceiver value differs from the two receipts. "Rana kommune" in the form receipt and "{0} Kommune" in the archive receipt.

Additional Information

appReceiver in the form receipt:

Image

appReceiver in the archive receipt:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions