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

In page user/index.php, if separate groups and user not in group, theme header doesn't show.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.7.1
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE

      Description

      If the user try to view "Partecipants" page in a course with separate groups, but he's not in a group, the error page doesn't show regular theme header.
      I checked in CVS:

      http://moodle.cvs.sourceforge.net/moodle/moodle/user/index.php?revision=1.142&view=markup

      This lines:
      109 if ($isseparategroups and (!$currentgroup) )

      { //XXX 110 print_heading(get_string("notingroup", "forum")); 111 print_footer($course); 112 exit; 113 }

      Have to be integrated with "print_header" function:
      if ($isseparategroups and (!$currentgroup) )

      { //XXX print_header("$course->shortname: ".get_string('participants'), $course->fullname, "<a href=\"../course/view.php?id=$course->id\">$course->shortname</a> -> ". get_string('participants'), "", "", true, " ", navmenu($course)); print_heading(get_string("notingroup", "forum")); print_footer($course); exit; }

        Attachments

        1. user_index_bug.jpg
          53 kB
          Stefano Bagnatica

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            thepisu Stefano Bagnatica
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jan/07