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

Editing another user's submission in the assign module throws error

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course with some enrolled used.
      2. Create an assignment module.
      3. Click on the module and select "View/grade all submissions".
      4. Next to a student click 'Edit' then 'Edit submission'.
      5. Upload a file and click 'Save' - ensure there are no errors.
      Show
      Create a course with some enrolled used. Create an assignment module. Click on the module and select "View/grade all submissions". Next to a student click 'Edit' then 'Edit submission'. Upload a file and click 'Save' - ensure there are no errors.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-45677_master

      Description

      1. View the grading table.
      2. Next to a student click 'Edit' then 'Edit submission'.
      3. Upload a file and click 'Save' you will get the following -

      Warning: Attempt to assign property of non-object in /Users/mark/htdocs/mstorage/sm/moodle/mod/assign/submission/file/locallib.php on line 231

        Attachments

          Activity

            People

            Assignee:
            markn Mark Nelson
            Reporter:
            markn Mark Nelson
            Peer reviewer:
            Simey Lameze
            Integrator:
            Damyon Wiese
            Tester:
            John Okely
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Jul/14