Skip to content

Commit

Permalink
MDL-66471 user: fix user_selector debug about extra identity fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed May 19, 2020
1 parent 4d56bb4 commit f138423
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions user/selector/lib.php
Expand Up @@ -327,7 +327,9 @@ public function get_name() {
* @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);
}

/**
Expand Down Expand Up @@ -370,7 +372,6 @@ protected function get_options() {
'class' => get_class($this),
'name' => $this->name,
'exclude' => $this->exclude,
'extrafields' => $this->extrafields,
'multiselect' => $this->multiselect,
'accesscontext' => $this->accesscontext,
);
Expand Down

0 comments on commit f138423

Please sign in to comment.