浏览代码

Correctif backoffice

feature/export_comptable
Fab 4 年前
父节点
当前提交
3ef0c3c2f4
共有 4 个文件被更改,包括 9 次插入2 次删除
  1. +1
    -0
      ShopBundle/Controller/Backend/OrderController.php
  2. +2
    -0
      ShopBundle/Resources/views/backend/default/list-fields/field_options_translatable.html.twig
  3. +0
    -2
      ShopBundle/Resources/views/backend/default/list-fields/field_ticket_type.html.twig
  4. +6
    -0
      ShopBundle/Resources/views/backend/order/list-fields/order-payment.html.twig

+ 1
- 0
ShopBundle/Controller/Backend/OrderController.php 查看文件

@@ -586,6 +586,7 @@ class OrderController extends AdminController
protected function getOrderShopEntity()
{
$easyadmin = $this->request->attributes->get('easyadmin');
$this->orderUtils->initOrderShop($easyadmin['item']);
return $easyadmin['item'];
}


+ 2
- 0
ShopBundle/Resources/views/backend/default/list-fields/field_options_translatable.html.twig 查看文件

@@ -0,0 +1,2 @@
{% set trans_value = 'field.'~entity_config.name~'.'~field_options.fieldName~'Options.'~value %}
{{ trans_value|trans({}, 'lcshop') }}

+ 0
- 2
ShopBundle/Resources/views/backend/default/list-fields/field_ticket_type.html.twig 查看文件

@@ -1,2 +0,0 @@
{% set trans_value = 'field.Ticket.typeOptions.'~value %}
{{ trans_value|trans({}, 'lcshop') }}

+ 6
- 0
ShopBundle/Resources/views/backend/order/list-fields/order-payment.html.twig 查看文件

@@ -0,0 +1,6 @@
{% for val in value %}
<span class="badge badge-success">
{% set trad = 'field.default.meanPaymentOptions.'~val.meanPayment %}
{{ trad|trans({}, 'lcshop') }}
</span>
{% endfor %}

正在加载...
取消
保存