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

Search in admin reveals missing alternate name fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      Prerequisites

      • Make sure you have debug developer enabled.

      Testing

      Enable all of the alternate name fields

      1. Go to [Administration ► Site administration ► Users ► Permissions ► User policies].
      2. In "Full name format" section add firstname, lastname, firstnamephonetic, lastnamephonetic, middlename, alternatename and then save changes.

      Add a manager to the site

      1. Go to [Administration ► Site administration ► Users ► Permissions ► Assign system roles].
      2. Click on the "Manager role" and add a user to be a manager.
      3. Go back to the previous page (for choosing the role). [Test] Make sure that there are no warnings on this page.

      Do an admin search

      1. In the search box at the bottom, put in a search for 'forum' or something like that.
      2. [Test] Ensure that there are no warnings on the search result page.
      Show
      Prerequisites Make sure you have debug developer enabled. Testing Enable all of the alternate name fields Go to [Administration ► Site administration ► Users ► Permissions ► User policies] . In "Full name format" section add firstname, lastname, firstnamephonetic, lastnamephonetic, middlename, alternatename and then save changes. Add a manager to the site Go to [Administration ► Site administration ► Users ► Permissions ► Assign system roles] . Click on the "Manager role" and add a user to be a manager. Go back to the previous page (for choosing the role). [Test] Make sure that there are no warnings on this page. Do an admin search In the search box at the bottom, put in a search for 'forum' or something like that. [Test] Ensure that there are no warnings on the search result page.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-42089-master
    • Sprint:
      BACKEND Sprint 6

      Description

      When searching forum.

      You need to update your sql to include additional name fields in the user object.
      line 3601 of /lib/moodlelib.php: call to debugging()
      line 3346 of /lib/adminlib.php: call to fullname()
      line 2924 of /lib/adminlib.php: call to admin_setting_users_with_capability->load_choices()
      line 1285 of /lib/adminlib.php: call to admin_setting_configmultiselect->is_related()
      line 831 of /lib/adminlib.php: call to admin_settingpage->search()
      line 831 of /lib/adminlib.php: call to admin_category->search()
      line 6464 of /lib/adminlib.php: call to admin_category->search()
      line 45 of /admin/search.php: call to admin_search_settings_html()
      

      To reproduce this error, you need to add a manager or possibly another administrator to the system.

        Attachments

          Activity

            People

            Assignee:
            abgreeve Adrian Greeve
            Reporter:
            fred Frédéric Massart
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Dan Poltawski
            Tester:
            Rossiani Wijaya
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Nov/13