MDL-66471 user: fix user_selector debug about extra identity fields.
authorPaul Holden <paulh@moodle.com>
Thu, 22 Aug 2019 16:32:41 +0000 (17:32 +0100)
committerPaul Holden <paulh@moodle.com>
Tue, 19 May 2020 18:12:35 +0000 (19:12 +0100)
user/selector/lib.php

index 7cf6c2b..7d79d57 100644 (file)
@@ -327,7 +327,9 @@ abstract class user_selector_base {
      * @param array $fields a list of field names that exist in the user table.
      */
     public function set_extra_fields($fields) {
-        $this->extrafields = $fields;
+        debugging('The user_selector classes do not support custom list of extra identity fields any more. '.
+            'Instead, the user identity fields defined by the site administrator will be used to respect '.
+            'the configured privacy setting.', DEBUG_DEVELOPER);
     }
 
     /**
@@ -370,7 +372,6 @@ abstract class user_selector_base {
             'class' => get_class($this),
             'name' => $this->name,
             'exclude' => $this->exclude,
-            'extrafields' => $this->extrafields,
             'multiselect' => $this->multiselect,
             'accesscontext' => $this->accesscontext,
         );