瀏覽代碼

Finalisation app purcahseOrder

packProduct
Fabien Normand 3 年之前
父節點
當前提交
de84ab05d4
共有 2 個文件被更改,包括 10 次插入1 次删除
  1. +9
    -0
      Controller/Product/ProductFamilyAdminController.php
  2. +1
    -1
      Repository/Order/OrderShopStore.php

+ 9
- 0
Controller/Product/ProductFamilyAdminController.php 查看文件

@@ -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 查看文件

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

$query
->selectCount()

Loading…
取消
儲存