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

modgrade form element forces 'none' option

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_27_STABLE

      Description

      According to the formslib docs (https://docs.moodle.org/dev/lib/formslib.php_Form_Definition#modgrade), the fourth option passed to a new modgrade element should be a boolean that controls whether a "No Grade" option is listed.

      However, looking at the code in lib/form/modgrade.php, the list of options seems to be set the same way every time, and indeed it doesn't seem to make a difference if I pass true or false to addElement().

      If the docs are out of date, I'd like to advocate for having the option reinstated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              usernamenumber Brad
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: