From 88552e7c9cb32a22d5a86c1c79f5cfcc0f03eee5 Mon Sep 17 00:00:00 2001 From: yarik Date: Fri, 2 Dec 2016 16:13:42 +0200 Subject: [PATCH] Customer Search fix --- models/CustomerSearch.php | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/models/CustomerSearch.php b/models/CustomerSearch.php index 7062ad8..1b89cde 100755 --- a/models/CustomerSearch.php +++ b/models/CustomerSearch.php @@ -10,7 +10,6 @@ */ class CustomerSearch extends Customer { - /** * @inheritdoc */ @@ -28,10 +27,9 @@ [ [ 'username', - 'name', - 'surname', 'phone', 'body', + 'email', ], 'safe', ], @@ -77,9 +75,9 @@ // grid filtering conditions $query->andFilterWhere( [ - 'id' => $this->id, - 'birthday' => $this->birthday, - 'group_id' => $this->group_id, + 'id' => $this->id, + 'birthday' => $this->birthday, + 'group_id' => $this->group_id, ] ); @@ -93,20 +91,6 @@ ->andFilterWhere( [ 'like', - 'name', - $this->name, - ] - ) - ->andFilterWhere( - [ - 'like', - 'surname', - $this->surname, - ] - ) - ->andFilterWhere( - [ - 'like', 'phone', $this->phone, ] @@ -114,8 +98,8 @@ ->andFilterWhere( [ 'like', - 'body', - $this->body, + 'email', + $this->email, ] ); -- libgit2 0.21.4