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

View own activity report and Edit your own profile should be re-activated in Administration block

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8.6, 1.9.1
    • 1.7, 1.8, 1.9
    • Accessibility, Blocks
    • None
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      View own activity report and Edit your own profile should be re-activated in Administration block.
      These two links have been commented out in 1.7, 1.8 and 1.9, preceded with this comment: "Should the following two be in this block?"
      Unfortunately they have never been re-located to any other block so far.
      Having only recently upgraded from 1.6 to 1.8 I am missing this link very much and I am really surprised that no-one has ever raised the question since 1.7 was introduced... anyway, please can someone urgently comment out those lines in in blocks>admin>block_admin.php to restore those links?
      Thanks
      lines to be commented out:
      /// Should the following two be in this block?

      /// View own activity report
      // if ($course->showreports)

      { // $this->content->items[]='<a href="user.php?id='.$this->instance->pageid.'&user='.$USER->id.'">'.get_string('activityreport').'</a>'; // $this->content->icons[]='<img src="'.$CFG->pixpath.'/i/report.gif" alt="" />'; // }

      /// Edit your own profile

      // $fullname = fullname($USER, has_capability('moodle/site:viewfullnames', $context));
      // $editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
      // if (empty($USER->description))

      { // //Accessibility: replace non-standard <blink> with CSS (<a> makes title visible in IE). // $text = get_string('profile').' '.get_string('missingdescription'); // $this->content->items[]= $editmyprofile.' <a title="'.$text.'" class="useredit blink">*<span class="accesshide">'.$text.'</span></a>'; // }

      else

      { // $this->content->items[]= $editmyprofile; // }

      // $this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" alt="" />';

      Attachments

        Issue Links

          Activity

            People

              jerome Jérôme Mouneyrac
              rezeau Joseph Rézeau
              Helen Foster Helen Foster
              Votes:
              6 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.