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

Add 'idnumber' field to user filter

    XMLWordPrintable

    Details

      Description

      The idnumber field is useful for admin. But no way to filter users using this.
      Here is a sample code.

      diff moodle-2.6.4/user/filters/lib.php original_moodle-2.6.4/user/filters/lib.php

      37c37
      <             $fieldnames = array('realname'=>0, 'idnumber'=>1, 'lastname'=>1, 'firstname'=>1, 'email'=>1, 'city'=>1, 'country'=>1,
      ---
      >             $fieldnames = array('realname'=>0, 'lastname'=>1, 'firstname'=>1, 'email'=>1, 'city'=>1, 'country'=>1,
      106d105
      <             case 'idnumber':    return new user_filter_text('idnumber', get_string('idnumber'), $advanced, 'idnumber');
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rex Rex Lorenzo
              Reporter:
              papillon326 Mitsuru Udagawa
              Peer reviewer:
              Simey Lameze Simey Lameze
              Integrator:
              Dan Poltawski Dan Poltawski
              Tester:
              CiBoT CiBoT
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15