Ver código fonte

Merge branch 'develop'

master
Fab 4 anos atrás
pai
commit
16505a9a62
2 arquivos alterados com 11 adições e 6 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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>

Carregando…
Cancelar
Salvar