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

Typo in user_get_user_details_courses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5.5, 2.6.2, 2.7
    • 2.7
    • Libraries
    • MOODLE_27_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • 44279-27
    • Hide

      Run the following unit tests as I added new unit tests to trigger this bug.

      vendor/bin/phpunit user/tests/externallib_test.php

      Show
      Run the following unit tests as I added new unit tests to trigger this bug. vendor/bin/phpunit user/tests/externallib_test.php

      There is a rather nasty wee typo in user/lib.php user_get_user_details_courses.

      if ($can_view_user_details_cap($user, $course) || ($user->id == $USER->id) || has_coursecontact_role($user->id)) {
      

      That function has a $ in front of it.

            samhemelryk Sam Hemelryk
            samhemelryk Sam Hemelryk
            Petr Skoda Petr Skoda
            Damyon Wiese Damyon Wiese
            Marina Glancy Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.