Pārlūkot izejas kodu

[Administration] Utilisateurs > Commandes : ajout filtre par producteur

develop
Guillaume Bourgeois pirms 3 nedēļām
vecāks
revīzija
b7cfe6fc81
1 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. +7
    -3
      domain/Order/Order/OrderSearch.php

+ 7
- 3
domain/Order/Order/OrderSearch.php Parādīt failu

@@ -49,10 +49,14 @@ class OrderSearch extends Order
$paramsSearch['id_user'] = $params['id_user'];
}

$query = Order::searchQuery($paramsSearch, [
$optionsArray = [
'orderby' => isset($params['order_by']) ? $params['order_by'] : 'distribution.date DESC',
'ignore_id_producer' => isset($options['ignore_id_producer']) ? $options['ignore_id_producer'] : false
]);
];
if(isset($options['ignore_id_producer']) && $options['ignore_id_producer']) {
$optionsArray['ignore_id_producer'] = true;
}
$query = Order::searchQuery($paramsSearch, $optionsArray);
$dataProvider = new ActiveDataProvider([
'query' => $query,

Notiek ielāde…
Atcelt
Saglabāt