case-insensitive username search
This commit is contained in:
parent
1c3d4ad5e3
commit
0d6623c928
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class ActorColumn extends Column
|
||||||
{
|
{
|
||||||
public function __construct($name, $title)
|
public function __construct($name, $title)
|
||||||
{
|
{
|
||||||
parent::__construct($name, $title, "((username LIKE :{$name}) OR (address::text LIKE :{$name}))");
|
parent::__construct($name, $title, "((LOWER(username) LIKE LOWER(:{$name})) OR (address::text LIKE :{$name}))");
|
||||||
$this->input_mod = function ($var) {
|
$this->input_mod = function ($var) {
|
||||||
return "%$var%";
|
return "%$var%";
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue