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

Allow sorting on additional name fields.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide

      Participants page

      1. Go to [Site administration ► Users ► Permissions ► User policies] and change the full name format (fullnamedisplay) setting to at least include one of the additional name fields (firstnamephonetic, lastnamephonetic, middlename, alternatename).
      2. Update some student names to have these additional name fields filled out.
      3. Go to the participants page of a course.
      4. Check that the table header has the enabled additional name fields present.
      5. Make sure that you can sort the names using these additional name fields.

      Administration user list

      1. Go to [Site administration ► Users ► Permissions ► User policies] and change the Alternative full name format (alternativefullnameformat) setting to at least include one of the additional name fields (firstnamephonetic, lastnamephonetic, middlename, alternatename).
      2. To to [Site administration ► Users ► Accounts ► Browse list of users].
      3. Check that the enabled alternative name is visible in the header.
      4. Also check that you can sort the users using these headings.

      Enrolment page

      1. Go to an enrolment page in a course [Administration ► Course administration ► Users ► Enrolled users].
      2. Check that the enabled alternative name is visible in the header.
      3. Also check that you can sort the users using these headings.

      Unit tests

      1. Run the following unit test: phpunit lib/tests/moodlelib_test.php and report back if there are any failures.

      Behat tests

      1. Run the following behat test: lib/tests/behat/table_sorting.feature and report back if there are any failures.
      Show
      Participants page Go to [Site administration ► Users ► Permissions ► User policies] and change the full name format (fullnamedisplay) setting to at least include one of the additional name fields (firstnamephonetic, lastnamephonetic, middlename, alternatename). Update some student names to have these additional name fields filled out. Go to the participants page of a course. Check that the table header has the enabled additional name fields present. Make sure that you can sort the names using these additional name fields. Administration user list Go to [Site administration ► Users ► Permissions ► User policies] and change the Alternative full name format (alternativefullnameformat) setting to at least include one of the additional name fields (firstnamephonetic, lastnamephonetic, middlename, alternatename). To to [Site administration ► Users ► Accounts ► Browse list of users] . Check that the enabled alternative name is visible in the header. Also check that you can sort the users using these headings. Enrolment page Go to an enrolment page in a course [Administration ► Course administration ► Users ► Enrolled users] . Check that the enabled alternative name is visible in the header. Also check that you can sort the users using these headings. Unit tests Run the following unit test: phpunit lib/tests/moodlelib_test.php and report back if there are any failures. Behat tests Run the following behat test: lib/tests/behat/table_sorting.feature and report back if there are any failures.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-46921-master
    • Story Points:
      20

      Description

      The sorting of tables can only be done on the users first name and surname. There should be a way to sort on the additional name fields (firstnamephonetic, lastnamephonetic, middlename, alternatename).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              abgreeve Adrian Greeve
              Peer reviewer:
              Sam Hemelryk
              Integrator:
              Damyon Wiese
              Tester:
              Damyon Wiese
              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:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14