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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1
    • 2.0.4
    • Files API, Forms Library
    • None

      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.

        1. filepicker_test.php
          1 kB
          Jamie Pratt
        2. filepicker_test.php
          1 kB
          Jamie Pratt

            jamiesensei Jamie Pratt (Inactive)
            jamiesensei Jamie Pratt (Inactive)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.