Moodle
  1. Moodle
  2. MDL-21424

Course name in mentee's grade book links to own profile

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.8
    • Component/s: Gradebook
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      26595

      Description

      When viewing a mentee's overview gradebook, the course name shown in the gradebook is a link, however it links to your OWN course results, not the mentee's who you were viewing in the gradebook.

      I have modified the code in /grade/report/overview/lib.php LINE 116 FROM:

      $courselink = '<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$course->id.'">'.$course->shortname.'</a>';

      TO:

      $courselink = '<a href="'.$CFG->wwwroot.'/course/user.php?id='.$course->id.'&user='.$this->user->id.'&mode=grade">'.$course->shortname.'</a>';

      and this now links to the mentee's results for the particular course you click on.

        Activity

        Hide
        Dan Poltawski added a comment -

        Thanks, i've fixed this in CVS (though linking directly to the same user report rather than course report)

        Show
        Dan Poltawski added a comment - Thanks, i've fixed this in CVS (though linking directly to the same user report rather than course report)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: