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

if a teacher in editing mode looks at profil of user, navigation and settings block are gone

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.3.2
    • None
    • Blocks
    • None
    • MOODLE_23_STABLE

    Description

      • Log in as a teacher, go into a course
      • Turn on editing mode
      • in settings block go to users ->enrolled users
        (- or in navigation block go to participants)
      • click on a user
        -> there are no blocks, no settings block and no navigation block. They should be there at least because these blocks are sticky for the whole page; set to display on any page on the front page and prevented from being deleted. We are in course context, so there should be all the blocks of the course
      • on that page (user/view.php) click on 'full profil' and the blocks are there. Now we are in site context

      WORKAROUND
      I tried to set the pagelayout at a different place in user/view.php to 'standard' once again and now it works
      diff --git a/user/view.php b/user/view.php
      index 68d36ac..6aad71c 100644
      — a/user/view.php
      +++ b/user/view.php
      @@ -106,7 +106,7 @@ if ($currentuser) {
      // somebody else
      $PAGE->set_title("$strpersonalprofile: ");
      $PAGE->set_heading("$strpersonalprofile: ");
      -
      + $PAGE->set_pagelayout('standard'); // added for displaying the blocks
      // check course level capabilities
      if (!has_capability('moodle/user:viewdetails', $coursecontext) && // normal enrolled user or mnager

      Attachments

        Issue Links

          Activity

            People

              andyjdavis Andrew Davis
              kkrueger Katja Krüger
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: