Pārlūkot izejas kodu

Finalisation app purcahseOrder

packProduct
Fabien Normand pirms 3 gadiem
vecāks
revīzija
de84ab05d4
2 mainītis faili ar 10 papildinājumiem un 1 dzēšanām
  1. +9
    -0
      Controller/Product/ProductFamilyAdminController.php
  2. +1
    -1
      Repository/Order/OrderShopStore.php

+ 9
- 0
Controller/Product/ProductFamilyAdminController.php Parādīt failu

@@ -2,6 +2,7 @@

namespace Lc\CaracoleBundle\Controller\Product;

use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore;
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext;
use Lc\CaracoleBundle\Container\Order\OrderShopContainer;
@@ -13,6 +14,14 @@ use Symfony\Component\HttpFoundation\Response;

abstract class ProductFamilyAdminController extends AbstractAdminController
{
public function configureCrud(Crud $crud): Crud
{
$crud = parent::configureCrud($crud);

$crud->setDefaultSort(['id' => 'DESC']);

return $crud;
}

public function getRepositoryQuery() :RepositoryQueryInterface
{

+ 1
- 1
Repository/Order/OrderShopStore.php Parādīt failu

@@ -258,7 +258,7 @@ class OrderShopStore extends AbstractStore
ReductionCartInterface $reductionCart,
$query = null
): int {
$query = $this->createDefaultQuery($query);
$query = $this->createQuery($query);

$query
->selectCount()

Notiek ielāde…
Atcelt
Saglabāt