Explorar el Código

Correctif depositoryZone

develop
Guillaume hace 3 años
padre
commit
4e8362743a
Se han modificado 1 ficheros con 0 adiciones y 14 borrados
  1. +0
    -14
      ShopBundle/Controller/Backend/ProductFamilyController.php

+ 0
- 14
ShopBundle/Controller/Backend/ProductFamilyController.php Ver fichero

@@ -196,20 +196,6 @@ class ProductFamilyController extends AdminController
)
);

$currentMerchant = $this->merchantUtils->getMerchantCurrent();

$formBuilder->add('depositoryZone', EntityType::class, [
'class' => DepositoryZone::class,
'query_builder' => function (EntityRepository $er) use ($currentMerchant) {
return $er->createQueryBuilder('d')
->where('d.merchant = :currentMerchant')
->setParameter('currentMerchant', $currentMerchant)
->andWhere('d.status > 0');
},
'label' => 'Zone de dépot',
'required' => false
]);

$formBuilder = $this->overrideFormBuilder($formBuilder, $entity, $view);

return $formBuilder;

Cargando…
Cancelar
Guardar