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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Assignment (2.2)
    • None
    • MOODLE_20_STABLE
    • 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

              dongsheng Dongsheng Cai
              davosmith Davo Smith
              Nobody Nobody
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10