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

Edit profile page shows header for custom user profile fields when there are none to display.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.9
    • Libraries
    • None
    • MOODLE_19_STABLE

      in user/profile/lib.php

      function profile_definition(&$mform) {

      the Header is always printed, even if all the custom fields are set to "not visible"

      this line:
      if ($fields = get_records_select('user_info_field', "categoryid=$category->id", 'sortorder ASC')) {

      should be something like:
      if ($fields = get_records_select('user_info_field', "categoryid=$category->id and visible<>0", 'sortorder ASC')) {

            timhunt Tim Hunt
            danmarsden Dan Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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