Commit 9fbab5b4 authored by Shakarim Sapa's avatar Shakarim Sapa

- Скрываем из таблицы подписки заявки из блога

parent 4150e62d
...@@ -35,7 +35,7 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -35,7 +35,7 @@ class Bid extends \common\components\ActiveRecordModel
public static $form_titles = [ public static $form_titles = [
self::FORM_PROJECT => 'Расчитать проект', self::FORM_PROJECT => 'Расчитать проект',
self::FORM_CALLBACK => 'Обратный звонок', self::FORM_CALLBACK => 'Обратный звонок',
self::FORM_SUBSCRIBE => 'Подписка', // self::FORM_SUBSCRIBE => 'Подписка',
self::FORM_MESSAGE => 'Сообщение с сайта', self::FORM_MESSAGE => 'Сообщение с сайта',
]; ];
......
...@@ -69,6 +69,8 @@ class SearchBid extends Bid ...@@ -69,6 +69,8 @@ class SearchBid extends Bid
'created_at' => ($this->created_at?strtotime($this->created_at):$this->created_at), 'created_at' => ($this->created_at?strtotime($this->created_at):$this->created_at),
]); ]);
$query->andFilterWhere(['not', 'form', Bid::$form_titles[self::FORM_SUBSCRIBE]]);
$query->andFilterWhere(['like', 'name', $this->name]) $query->andFilterWhere(['like', 'name', $this->name])
->andFilterWhere(['like', 'phone', $this->phone]) ->andFilterWhere(['like', 'phone', $this->phone])
->andFilterWhere(['like', 'email', $this->email]) ->andFilterWhere(['like', 'email', $this->email])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment