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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.7
    • 1.9.8
    • Gradebook
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

    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.

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            pat25d Patrick Daly
            Nobody Nobody
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              25/Mar/10