Pārlūkot izejas kodu

[Administration] Utilisateurs > Commandes : ajout filtre par producteur

develop
Guillaume Bourgeois pirms 4 nedēļām
vecāks
revīzija
460c6c648d
2 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -0
      backend/controllers/admin/OrderAdminController.php
  2. +0
    -1
      domain/Order/Order/OrderSearch.php

+ 1
- 0
backend/controllers/admin/OrderAdminController.php Parādīt failu

@@ -68,6 +68,7 @@ class OrderAdminController extends BackendController
{
$searchModel = new OrderSearch();
$dataProvider = $searchModel->search([
'ignore_id_producer' => true,
'order_by' => 'IF(ISNULL(date_update), `order`.`date`, `order`.`date_update`) DESC'
]);


+ 0
- 1
domain/Order/Order/OrderSearch.php Parādīt failu

@@ -50,7 +50,6 @@ class OrderSearch extends Order
}

$query = Order::searchQuery($paramsSearch, [
'ignore_id_producer' => true,
'orderby' => isset($params['order_by']) ? $params['order_by'] : 'distribution.date DESC'
]);

Notiek ielāde…
Atcelt
Saglabāt