瀏覽代碼

Correctif mineur

packProduct
Fabien Normand 3 年之前
父節點
當前提交
0599af201d
共有 2 個文件被更改,包括 9 次插入1 次删除
  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 查看文件

@@ -35,6 +35,10 @@ class UserMerchantBuilder

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

return $userMerchant;

+ 5
- 1
Resources/views/admin/order/field/delivery_type.html.twig 查看文件

@@ -1 +1,5 @@
{{ 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…
取消
儲存