Label305/Auja

Page is not generated upon unknown input type

Closed this issue · 0 comments

When clicking a LinkMenuItem which resolves into a page with an unknown input type, nothing happens.

Example result:

{
  "type": "page",
  "page": [
    {
      "type": "header",
      "header": {
        "text": "Edit Club",
        "buttons": [
          {
            "text": "Delete",
            "target": "http:\/\/localhost:8000\/clubs\/1",
            "method": "delete",
            "confirm": "Are you sure?"
          }
        ]
      }
    },
    {
      "type": "form",
      "form": {
        "action": "http:\/\/localhost:8000\/clubs\/1",
        "method": "PUT",
        "items": [
          {
            "type": "text",
            "text": {
              "name": "name",
              "label": "name",
              "value": null,
              "required": false
            }
          },
          {
            "type": "thisdoesntexist",
            "thisdoesntexist": {
              "name": "club_house_id",
              "label": "club_house_id",
              "value": null,
              "required": false
            }
          },
          {
            "type": "submit",
            "submit": {
              "text": "Submit"
            }
          }
        ]
      }
    }
  ]
}

Replacing thisdoesntexist by text makes the page working again.