Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
138211efba
|
@ -202,7 +202,8 @@ class User < Principal
|
||||||
where(nil)
|
where(nil)
|
||||||
else
|
else
|
||||||
pattern = "%#{arg.to_s.strip.downcase}%"
|
pattern = "%#{arg.to_s.strip.downcase}%"
|
||||||
where(" LOWER(concat(lastname, firstname)) LIKE :p ", :p => pattern)
|
#where(" LOWER(concat(lastname, firstname)) LIKE :p ", :p => pattern)
|
||||||
|
where(" LOWER(login) LIKE :p ", :p => pattern)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue