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

Cancelling feedback throws an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.3
    • Component/s: Feedback
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a feedback (1) on the front page, add a question
      2. Create a course
      3. Add block feedback to the course
      4. Create a feedback (2) in the course, set completion "require view", add a question
      5. As a student go to the course, open each of the feedbacks (one will be on the course page and another inside the block)
      6. click "Answer the questions" and then "Cancel" - make sure you are redirected to the course where you were
      7. make sure feedback is marked as complete
      8. go to the front page and click on the feedback name there
      9. click "Answer the questions" and then "Cancel" - make sure you are redirected to the front page
      Show
      Create a feedback (1) on the front page, add a question Create a course Add block feedback to the course Create a feedback (2) in the course, set completion "require view", add a question As a student go to the course, open each of the feedbacks (one will be on the course page and another inside the block) click "Answer the questions" and then "Cancel" - make sure you are redirected to the course where you were make sure feedback is marked as complete go to the front page and click on the feedback name there click "Answer the questions" and then "Cancel" - make sure you are redirected to the front page
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      wip-MDL-58502-master

      Description

      answer feedback questions and click Cancel

      Debug info: SELECT format FROM {course} WHERE id = ?
      [array (
      0 => 0,
      )]
      Error code: invalidrecord
      ×Stack trace:
      line 1615 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1591 of /lib/dml/moodle_database.php: call to moodle_database->get_field_select()
      line 176 of /course/format/lib.php: call to moodle_database->get_field()
      line 35 of /course/format/lib.php: call to format_base::instance()
      line 3181 of /course/lib.php: call to course_get_format()
      line 691 of /mod/feedback/classes/completion.php: call to course_get_url()
      line 95 of /mod/feedback/complete.php: call to mod_feedback_completion->process_page()
      Continue
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              David Mudrák (@mudrd8mz)
              Integrator:
              Dan Poltawski
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/17