MDL-22910 workaround for inability of Oracle and MS sql to find distinct text fields, improved perf in all dbs
This commit is contained in:
@@ -296,10 +296,10 @@ class user_picture implements renderable {
|
||||
* List of mandatory fields in user record here.
|
||||
* @var string
|
||||
*/
|
||||
const FIELDS = 'id,picture,firstname,lastname,imagealt';
|
||||
const FIELDS = 'id,picture,firstname,lastname,imagealt,email'; //note: the email will be useful for gravatar support int the future ;-)
|
||||
|
||||
/**
|
||||
* @var object $user A user object with at least fields id, picture, imagealt, firstname and lastname set.
|
||||
* @var object $user A user object with at least fields all columns specified in FIELDS constant set.
|
||||
*/
|
||||
public $user;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user