Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28099

filepicker form element does not work with element names with an index such as image[0]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.1
    • Component/s: Files API, Forms Library
    • Labels:
      None

      Description

      draftitemid is not returned by form when the element name of the item has an index eg. image[0]. Draft item does not get passed through from POST data. So repeat_elements or anything else in forms including filepicker element with an index will not work.

        Attachments

          Activity

            People

            • Assignee:
              jamiesensei Jamie Pratt
              Reporter:
              jamiesensei Jamie Pratt
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Matteo Scaramuccia, Jake Dallimore, Jun Pataleta, Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                1/Jul/11