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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

      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

            • Assignee:
              poltawski Dan Poltawski
              Reporter:
              pat25d Patrick Daly
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Mar/10