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

              rex Rex Lorenzo
              papillon326 Mitsuru Udagawa
              Simey Lameze Simey Lameze
              Dan Poltawski Dan Poltawski
              CiBoT CiBoT
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15