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

Choosing bulk removal of empty submissions cause an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.3
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:

      Description

      To reproduce:

      1. Create an assignment which accepts file submissions
      2. Go to the assignment
      3. View all submissions
      4. Select one or more assignments without any submission.
      5. Go to the bulk actions menu.
      6. Select "Remove submission" then press "Go"
      7. The following error is then thrown:

        Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified.
         
        More information about this error
         
        ×Debug info:
        Error code: codingerror
        ×Stack trace:
        line 1159 of /lib/dml/pgsql_native_moodle_database.php: coding_exception thrown
        line 1216 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->update_record_raw()
        line 327 of /mod/assign/submission/file/locallib.php: call to pgsql_native_moodle_database->update_record()
        line 7960 of /mod/assign/locallib.php: call to assign_submission_file->remove()
        line 8028 of /mod/assign/locallib.php: call to assign->remove_submission()
        line 4935 of /mod/assign/locallib.php: call to assign->process_remove_submission()
        line 533 of /mod/assign/locallib.php: call to assign->process_grading_batch_operation()
        line 55 of /mod/assign/view.php: call to assign->view()
        ×Output buffer: <br /> <b>Warning</b>: Creating default object from empty value in <b>/home/jun/moodles/stable_master/moodle/mod/assign/submission/file/locallib.php</b> on line <b>326</b><br />
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Geshoski Mihail Geshoski
                Reporter:
                jpataleta Jun Pataleta
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m