Browse Source

Correctif mineur

packProduct
Fabien Normand 3 years ago
parent
commit
0599af201d
2 changed files with 9 additions and 1 deletions
  1. +4
    -0
      Builder/User/UserMerchantBuilder.php
  2. +5
    -1
      Resources/views/admin/order/field/delivery_type.html.twig

+ 4
- 0
Builder/User/UserMerchantBuilder.php View File



$this->entityManager->create($userMerchant); $this->entityManager->create($userMerchant);
$this->entityManager->flush(); $this->entityManager->flush();
}elseif(!$userMerchant->getActive()){
$userMerchant->setActive(true);
$this->entityManager->update($userMerchant);
$this->entityManager->flush();
} }


return $userMerchant; return $userMerchant;

+ 5
- 1
Resources/views/admin/order/field/delivery_type.html.twig View File

{{ field.value|sov_trans_admin_choice('deliveryType', 'OrderShop') }}
{% if field.value is not null %}
{{ field.value|sov_trans_admin_choice('deliveryType', 'OrderShop') }}
{% else %}
Pas de livraison
{% endif %}

Loading…
Cancel
Save