瀏覽代碼

Merge branch 'develop'

master
Fab 4 年之前
父節點
當前提交
16505a9a62
共有 2 個文件被更改,包括 11 次插入6 次删除
  1. +1
    -0
      ShopBundle/Repository/ProductFamilyRepository.php
  2. +10
    -6
      ShopBundle/Resources/views/backend/merchant/panel_general.html.twig

+ 1
- 0
ShopBundle/Repository/ProductFamilyRepository.php 查看文件

@@ -75,6 +75,7 @@ class ProductFamilyRepository extends BaseRepository implements DefaultRepositor
$query->andWhere('e.status = 1');
$query->andWhere(':now <= e.propertyNoveltyExpirationDate')
->setParameter('now', new \DateTime()) ;
$query->orderBy('e.createdAt', 'DESC');

return $query->getQuery()->getResult() ;
}

+ 10
- 6
ShopBundle/Resources/views/backend/merchant/panel_general.html.twig 查看文件

@@ -12,12 +12,16 @@
<div class="col-12">
{{ form_row(form.merchantConfigs['second-line-element-menu']) }}
</div>
<div class="col-12">
{{ form_row(form.merchantConfigs['message-global-alert-type']) }}
</div>
<div class="col-12">
{{ form_row(form.merchantConfigs['message-global-alert']) }}
</div>
{% if form.merchantConfigs['message-global-alert-type'] is defined %}
<div class="col-12">
{{ form_row(form.merchantConfigs['message-global-alert-type']) }}
</div>
{% endif %}
{% if form.merchantConfigs['message-global-alert'] is defined %}
<div class="col-12">
{{ form_row(form.merchantConfigs['message-global-alert']) }}
</div>
{% endif %}
{{ macros.card_end() }}
</div>
</div>

Loading…
取消
儲存