Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11295

Grid repeater edit : fail with enum data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.6, 4.6.0
    • None
    • None
    • None
    • 4.6 M3

      I have a repeater with a few fields with one that is an enum.
      When editing in grid th repeater, if I edit a field (not the enumerated one) when I finally save I have this error

      Item 'deploiements/ametysversion_enum' not found in models: 'Optional[project]'.
      java.lang.IllegalArgumentException: Item 'deploiements/ametysversion_enum' not found in models: 'Optional[project]'.
          at org.ametys.runtime.model.ViewHelper.createViewItemAccessor(ViewHelper.java:125)
          at org.ametys.cms.workflow.EditContentFunction.getView(EditContentFunction.java:465)
          at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:235)
      

      {
      "_content.input.deploiements[1]/previous-position": 1,
      "content.input.deploiements[1]/date": "2022-06-30T13:30:21.801Z",
      "content.input.deploiements[1]/projectversion": "1.0.0ALPHA",
      "content.input.deploiements[1]/description": null,
      "content.input.deploiements[1]/title": "BO Prod",
      "content.input.deploiements[1]/ametysversion": "4.3.0",
      "content.input.deploiements[1]/ametysversion_enum": { },
      "_content.input.deploiements[2]/previous-position": 2,
      "content.input.deploiements[2]/date": "2022-06-30T13:37:20.356Z",
      "content.input.deploiements[2]/projectversion": "1.0.0ALPHA2",
      "content.input.deploiements[2]/description": null,
      "content.input.deploiements[2]/title": "FO Prod",
      "content.input.deploiements[2]/ametysversion": "4.3.0",
      "content.input.deploiements[2]/ametysversion_enum": { },
      "_content.input.deploiements[3]/previous-position": 3,
      "content.input.deploiements[3]/date": "2022-06-30T13:37:28.888Z",
      "content.input.deploiements[3]/projectversion": "1.0.0ALPHA",
      "content.input.deploiements[3]/description": null,
      "content.input.deploiements[3]/title": "FO coco Prod",
      "content.input.deploiements[3]/ametysversion": "4.3.0",
      "content.input.deploiements[3]/ametysversion_enum": { },
      "_content.input.deploiements/size": 3
      }

            raphael Raphaël Franchet
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: