Commit 88552e7c9cb32a22d5a86c1c79f5cfcc0f03eee5

Authored by Yarik
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 10 */
11 11 class CustomerSearch extends Customer
12 12 {
13   -
14 13 /**
15 14 * @inheritdoc
16 15 */
... ... @@ -28,10 +27,9 @@
28 27 [
29 28 [
30 29 'username',
31   - 'name',
32   - 'surname',
33 30 'phone',
34 31 'body',
  32 + 'email',
35 33 ],
36 34 'safe',
37 35 ],
... ... @@ -77,9 +75,9 @@
77 75 // grid filtering conditions
78 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 91 ->andFilterWhere(
94 92 [
95 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 94 'phone',
111 95 $this->phone,
112 96 ]
... ... @@ -114,8 +98,8 @@
114 98 ->andFilterWhere(
115 99 [
116 100 'like',
117   - 'body',
118   - $this->body,
  101 + 'email',
  102 + $this->email,
119 103 ]
120 104 );
121 105  
... ...