• Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • 3.9
    • None
    • None
    • None

      I have a complex content type with
      repeater/composite/repeater/repeater

      I edit a content with 1 entry of the first repeater (and nothing inside)
      I add a second entry of the repeater1.
      I move it up to the first place
      I add a repeater2 in the old entry (at location 2)

      I save and it fails because it send this :

                  "_content.input.attachments.size": "2",
                  "_content.input.attachments.2.previous-position": "1",
                  "content.input.attachments.2.attachment": "{}",
                  "content.input.attachments.2.attachment-text": "test1->2",
                  "content.input.attachments.2.attachment-desc": "",
                  "_content.input.attachments.2.address2.urls.size": "1",
                  "_content.input.attachments.1.previous-position": "-1",
                  "content.input.attachments.1.attachment": "{}",
                  "content.input.attachments.1.attachment-text": "newtext",
                  "content.input.attachments.1.attachment-desc": "",
                  "_content.input.attachments.1.address2.urls.size": "0",
                  "_content.input.attachments.2.address2.urls.1.previous-position": "-1",
                  "content.input.attachments.2.address2.urls.1.url": "urlonold1",
                  "content.input.attachments.2.address2.urls.1.alt-text": "",
                  "_content.input.attachments.2.address2.urls.1.statistics.size": "0"
      

      If I add the repeater2 before the move, it seems better and send this:

                  "_content.input.attachments.size": "2",
                  "_content.input.attachments.2.previous-position": "1",
                  "content.input.attachments.2.attachment": "{}",
                  "content.input.attachments.2.attachment-text": "test",
                  "content.input.attachments.2.attachment-desc": "",
                  "_content.input.attachments.2.address2.urls.size": "1",
                  "_content.input.attachments.2.address2.urls.1.previous-position": "-1",
                  "content.input.attachments.2.address2.urls.1.url": "",
                  "content.input.attachments.2.address2.urls.1.alt-text": "tte",
                  "_content.input.attachments.2.address2.urls.1.statistics.size": "0",
                  "_content.input.attachments.1.previous-position": "-1",
                  "content.input.attachments.1.attachment": "{}",
                  "content.input.attachments.1.attachment-text": "newtest",
                  "content.input.attachments.1.attachment-desc": "",
                  "_content.input.attachments.1.address2.urls.size": "0"
      

      (I say 'seems' because I am working on the editcontentfunction....)

          [CMS-5315] Repeaters send a wrong request

          Raphaël Franchet made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Raphaël Franchet made changes -
          Summary Original: Repeaters are send a wrong request New: Repeaters send a wrong request
          Raphaël Franchet made changes -
          Attachment New: org.ametys.cms.default.Content.simple.xml [ 14579 ]

          Here is my override of the default simple content type

          Raphaël Franchet added a comment - Here is my override of the default simple content type
          Raphaël Franchet created issue -

            ngavalda Nicolas Gavalda (Inactive)
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: