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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      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

              Assignee:
              andyjdavis Andrew Davis
              Reporter:
              kkrueger Katja Krüger
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: