Commit 88552e7c9cb32a22d5a86c1c79f5cfcc0f03eee5
1 parent
70372c90
Customer Search fix
Showing
1 changed file
with
6 additions
and
22 deletions
Show diff stats
models/CustomerSearch.php
@@ -10,7 +10,6 @@ | @@ -10,7 +10,6 @@ | ||
10 | */ | 10 | */ |
11 | class CustomerSearch extends Customer | 11 | class CustomerSearch extends Customer |
12 | { | 12 | { |
13 | - | ||
14 | /** | 13 | /** |
15 | * @inheritdoc | 14 | * @inheritdoc |
16 | */ | 15 | */ |
@@ -28,10 +27,9 @@ | @@ -28,10 +27,9 @@ | ||
28 | [ | 27 | [ |
29 | [ | 28 | [ |
30 | 'username', | 29 | 'username', |
31 | - 'name', | ||
32 | - 'surname', | ||
33 | 'phone', | 30 | 'phone', |
34 | 'body', | 31 | 'body', |
32 | + 'email', | ||
35 | ], | 33 | ], |
36 | 'safe', | 34 | 'safe', |
37 | ], | 35 | ], |
@@ -77,9 +75,9 @@ | @@ -77,9 +75,9 @@ | ||
77 | // grid filtering conditions | 75 | // grid filtering conditions |
78 | $query->andFilterWhere( | 76 | $query->andFilterWhere( |
79 | [ | 77 | [ |
80 | - 'id' => $this->id, | ||
81 | - 'birthday' => $this->birthday, | ||
82 | - 'group_id' => $this->group_id, | 78 | + 'id' => $this->id, |
79 | + 'birthday' => $this->birthday, | ||
80 | + 'group_id' => $this->group_id, | ||
83 | ] | 81 | ] |
84 | ); | 82 | ); |
85 | 83 | ||
@@ -93,20 +91,6 @@ | @@ -93,20 +91,6 @@ | ||
93 | ->andFilterWhere( | 91 | ->andFilterWhere( |
94 | [ | 92 | [ |
95 | 'like', | 93 | 'like', |
96 | - 'name', | ||
97 | - $this->name, | ||
98 | - ] | ||
99 | - ) | ||
100 | - ->andFilterWhere( | ||
101 | - [ | ||
102 | - 'like', | ||
103 | - 'surname', | ||
104 | - $this->surname, | ||
105 | - ] | ||
106 | - ) | ||
107 | - ->andFilterWhere( | ||
108 | - [ | ||
109 | - 'like', | ||
110 | 'phone', | 94 | 'phone', |
111 | $this->phone, | 95 | $this->phone, |
112 | ] | 96 | ] |
@@ -114,8 +98,8 @@ | @@ -114,8 +98,8 @@ | ||
114 | ->andFilterWhere( | 98 | ->andFilterWhere( |
115 | [ | 99 | [ |
116 | 'like', | 100 | 'like', |
117 | - 'body', | ||
118 | - $this->body, | 101 | + 'email', |
102 | + $this->email, | ||
119 | ] | 103 | ] |
120 | ); | 104 | ); |
121 | 105 |