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

profile view - myprofilelib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: User management
    • Labels:
      None
    • Affected Branches:
      MOODLE_29_STABLE

      Description

      in /moodle/lib/myprofilelib.php line 195

      in moodle Moodle 2.9.1+ (Build: 20150716)

      if (isset($identityfields['department']) && $user->department)

      { $node = new core_user\output\myprofile\node('contact', 'department', get_string('department'), null, null, $user->institution); // -----> here is $user->department $tree->add_node($node); }

      correct is:

      if (isset($identityfields['department']) && $user->department)

      { $node = new core_user\output\myprofile\node('contact', 'department', get_string('department'), null, null, $user->department); $tree->add_node($node); }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                brugger Gisele Brugger
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: