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

Notice using the switch role feature

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Navigation
    • Labels:

      Description

      This seems to be a regression of MDL-31983.

      Under Moodle 2.5, logged as admin, go to any course and try "Switch role to student".

      The switch happens but this is shown:

      Notice: Undefined variable: iscurrentuser in lib/navigationlib.php on line 3965
      

      It seems that, or the calculation of $iscurrentuser is missing in generate_user_settings() or the code is incorrectly copied/pasted or similar from load_for_user().

      Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              David Monllaó
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/May/13