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

Assignment: Advanced upload type - error in setting default values when creating new assignment

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.9.2
    • 1.9.3, 2.0
    • Assignment (2.2)
    • None
    • any
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      assignment type (advanced) upload, in file assignment.class.php, in function setup_elements() the default value for 'trackdrafts' is not set correctly.

      Near line 1053:
      $mform->addElement('select', 'var4', get_string("trackdrafts", "assignment"), $ynoptions);
      $mform->setHelpButton('var4', array('trackdrafts', get_string('trackdrafts', 'assignment'), 'assignment'));
      $mform->setDefault('trackdrafts', 1);

      The last line should be
      $mform->setDefault('var4', 1);

      The form's variable name is var4 - not trackdrafts.

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            bgray Brian Gray
            Jérôme Mouneyrac Jérôme Mouneyrac
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Oct/08