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

Table course_display

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Testing Instructions:
      Hide

      1.Create a course.
      2.Look for it's id in mdl_course table.
      3.Corresponding to that course-id there would be 3 unique enroll-id's present in mdl_enrol table.
      4.Check mdl_user_enrolment table.If a student is enrolled for a particular subject then it must contain one of the 3 enroll-id's assigned to course.

      Show
      1.Create a course. 2.Look for it's id in mdl_course table. 3.Corresponding to that course-id there would be 3 unique enroll-id's present in mdl_enrol table. 4.Check mdl_user_enrolment table.If a student is enrolled for a particular subject then it must contain one of the 3 enroll-id's assigned to course.
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      A program was using sql to retrieve user count in a course by "SELECT id FROM mdl_course_display WHERE course=$course;".

      Question 1)
      In Moodle 2.4, does table mdl_course_display still exists? I installed few copies of Moodle 2.4 but cannot find it.

      Question 2)
      Any other table storing user count in a course?

      Thanks & regards,
      Nicky.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nickyng Nicky NG
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: