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

outputlib: user_picture ignores url property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Reproduce:
      =========
      $userpic = new user_picture();
      $userpic->user = $USER;
      $userpic->courseid = $COURSE->id;
      $userpic->url = true;
      $userpic = $OUTPUT->user_picture($userpic);

      Expected:
      ========
      According to class doc, if $url===true, default link is generated and the user picture is "clickable"

      Happens:
      =======
      Image is not active link

        Attachments

          Activity

            People

            • Assignee:
              poltawski Dan Poltawski
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: