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

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

    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.

        Gliffy Diagrams

          Activity

          Hide
          poltawski 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
          poltawski 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:
                Fix Release Date:
                25/Mar/10