Fix: Group member search by firstname/lastname

This commit is contained in:
Lucas Bartholemy 2018-03-19 12:54:55 +01:00
parent d557fe1f25
commit 9375a96952
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@ migrate your code to SpreadsheetExport. PHPOffice is replaced by PHPSpreadsheet.
- Chg: `PendingRegistrationsController->createCVS` removed
- Fix: Stream image preview size not changeable
- Fix: Increased maximum e-mail address length from 45 characters to 254
- Fix: Group member search by firstname/lastname
1.2.4 (December 13, 2017)

View File

@ -54,7 +54,8 @@ class UserSearch extends User
*/
public function search($params)
{
$query = ($this->query == null) ? User::find()->joinWith('profile') : $this->query;
$query = ($this->query == null) ? User::find() : $this->query;
$query->joinWith('profile');
$dataProvider = new ActiveDataProvider([
'query' => $query,