|
|
@@ -42,7 +42,7 @@ use yii\data\ActiveDataProvider; |
|
|
|
|
|
|
|
class OrderSearch extends Order |
|
|
|
{ |
|
|
|
public function search($params) |
|
|
|
public function search($params, $options = []) |
|
|
|
{ |
|
|
|
$paramsSearch = []; |
|
|
|
if(isset($params['id_user'])) { |
|
|
@@ -50,7 +50,8 @@ class OrderSearch extends Order |
|
|
|
} |
|
|
|
|
|
|
|
$query = Order::searchQuery($paramsSearch, [ |
|
|
|
'orderby' => isset($params['order_by']) ? $params['order_by'] : 'distribution.date DESC' |
|
|
|
'orderby' => isset($params['order_by']) ? $params['order_by'] : 'distribution.date DESC', |
|
|
|
'ignore_id_producer' => isset($options['ignore_id_producer']) ? $options['ignore_id_producer'] : false |
|
|
|
]); |
|
|
|
|
|
|
|
$dataProvider = new ActiveDataProvider([ |