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

Meta Enrolment - Search for course produces error

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Go to Site administration ► Plugins ► Enrolments ► Manage enrol plugins
      3. Enable course meta link
      4. Create 3 categories and one course on each category.
      5. Give enrol/meta:selectaslinked capability for teacher role on each category.
      6. Enrol a teacher in all 3 courses.
      7. Change the visibility of all categories to hidden.
      8. Log in as the enrolled teacher.
      9. Go to one of the courses Course administration ► Users ► Enrolment methods.
      10. Select Course meta link on Add method drop down.
      11. On Link course field, start typing the first letter of one of your courses.
      12. Make sure you don't get unknowncategory error.

      Please note, there are some existing bugs such a teacher that cannot see their courses if it is hidden.. that's a separated issue.

      Show
      Log in as admin Go to Site administration ► Plugins ► Enrolments ► Manage enrol plugins Enable course meta link Create 3 categories and one course on each category. Give enrol/meta:selectaslinked capability for teacher role on each category. Enrol a teacher in all 3 courses. Change the visibility of all categories to hidden. Log in as the enrolled teacher. Go to one of the courses Course administration ► Users ► Enrolment methods. Select Course meta link on Add method drop down. On Link course field, start typing the first letter of one of your courses. Make sure you don't get unknowncategory error. Please note, there are some existing bugs such a teacher that cannot see their courses if it is hidden.. that's a separated issue.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55229-master
    • Sprint:
      3.2 Sprint 4

      Description

      Searching for a course to connect (as Trainer) i get following error:
      unknowncategory
      Unbekannter Kursbereich
      File: ...lib/coursecatlib.php
      Line: 258
      Stack trace:

      Error code: unknowncategory

      Being logged in as Administrator the search seems to work correctly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              lestefan Stefan L
              Peer reviewer:
              Frédéric Massart
              Integrator:
              Andrew Nicols
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16