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

$create parameter in assign::get_user_submission() not optional as documented

    XMLWordPrintable

    Details

      Description

      The PHPDoc for the $create parameter in assign::get_user_submission() is

      @param bool $create optional - defaults to false. If set to true a new submission object
      will be created in the database with the status set to "new".

      This is not strictly correct, as the parameter has no default. If called without the parameter, the method happens to behave as if false was passed, but a warning message is emitted. It would be better if it were actually to default to false as documented.

        Attachments

          Activity

            People

            Assignee:
            maherne Michael Aherne
            Reporter:
            maherne Michael Aherne
            Integrator:
            Dan Poltawski
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/16