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

Assignment type plugins unable to preprocess forms in Moodle 2.0 [patch]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      If you add a 'filemanager' form element to the 'settings' form for a module, you need to be able to pre-process the form data to set up the draft area where the newly uploaded files will be stored.

      The assignment type plugin interface does not currently allow this to be done, which is causing problems when I am trying to update my uploadpdf plugin type to Moodle 2.0 (as this includes a filemanager element to allow a coversheet to be uploaded, to be attached to all the students' assignments).

      I have attached a proposed patch which would enable this functionality (as well as allowing for extra validation of the form, if so required).

      Please could someone take a look at this and include it in Moodle 2.0, if it is suitable (or suggest a better solution, if this is not going to work)?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dongsheng Dongsheng Cai
              Reporter:
              davosmith Davo Smith
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10