Moodle
  1. Moodle
  2. MDL-2185

Student Activity report shows hidden topics

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_14_STABLE
    • Rank:
      14080

      Description

      follow on from MDL-2032 - the hidden topics still show when in 'outline' and 'complete' activity reports. (albiet with no items).

      I fixed it by copying the code from the course formatting and added...:

      in /courses/users.php: (line 96)

      insert an if check in section foreach loop:

      $showsection = (isteacher($course->id) or $section->visible or !$course->hiddensections);

      if ($showsection)

      { // prevent hidden topics then close off (line 166) }

      cheers

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Eloy Lafuente (stronk7 at moodle.org) Wednesday, 17 November 2004, 01:33 AM:

        Done in 1.4 and 1.5. Seems to work. Thanks Geoff!

        Show
        Martin Dougiamas added a comment - From Eloy Lafuente (stronk7 at moodle.org) Wednesday, 17 November 2004, 01:33 AM: Done in 1.4 and 1.5. Seems to work. Thanks Geoff!
        Hide
        Michael Blake added a comment -

        assign to a valid user

        Show
        Michael Blake added a comment - assign to a valid user

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: