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

Error when courses in hidden categories are shown from search results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.6.3
    • Fix Version/s: None
    • Component/s: Course, Navigation
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      Courses in hidden categories are showing in search results and causing an error when clicked on.
      1) Create category and hide it
      2) Create course in that category
      3) Enrol a student (or any role that can't see hidden categories/courses)
      4) Loginas that student
      5) Use course/search.php to search for that course
      6) In the results (that will show that course), click on the course
      7) Unknown category error is thrown - see screenshot

      It's easy enough to hide the courses to hide them from the search results, but I would say courses within hidden categories should only be visible if the category is.

        Attachments

          Activity

            People

            Assignee:
            samhemelryk Sam Hemelryk
            Reporter:
            sharpchi Mark Sharp
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: