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

Selecting "Choose..." option from My Courses dropdown on Participants page generates error: Can not find data record in database table course

    XMLWordPrintable

Details

    • 8
    • FRONTEND Sprint 7

    Description

      On the Participants page, selecting selecting 'Choose...' from the My Courses dropdown results in an error.

      Pre-condition:
      User used for testing is enrolled in at least course

      Steps to reproduce:
      1. As a user with at least one course enrollment, access a course.
      2. In Navigation block, click Participants.
      3. From My Courses dropdown, select the 'Choose...' option.

      Expected results: The form should not submit.
      Actual results: The form submits, but 'Choose...' isn't a valid course and an error results.

      Can not find data record in database table course

      Debug info: SELECT * FROM course WHERE id = ?
      [array (
      0 => 0,
      )]
      Error code: invalidrecord
      Stack trace:
      • line 1357 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      • line 1333 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      • line 43 of /user/index.php: call to moodle_database->get_record()

      Attachments

        Issue Links

          Activity

            People

              jerome Jérôme Mouneyrac
              cfollin Chris Follin
              Frédéric Massart Frédéric Massart
              Marina Glancy Marina Glancy
              Michael de Raadt Michael de Raadt
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Jan/14