Bläddra i källkod

Merge branch 'develop'

master
Fab 4 år sedan
förälder
incheckning
2e878ecc54
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. +1
    -0
      ShopBundle/Repository/ProductRepository.php
  2. +1
    -1
      ShopBundle/Resources/views/backend/default/menu.html.twig

+ 1
- 0
ShopBundle/Repository/ProductRepository.php Visa fil

@@ -26,6 +26,7 @@ class ProductRepository extends BaseRepository implements DefaultRepositoryInter
$qb->innerJoin('e.productFamily', 'productFamily');
$qb->addSelect('productFamily');
$qb->where('productFamily.merchant = :currentMerchant');
$qb->andWhere('productFamily.status = 1');
$qb->setParameter('currentMerchant', $this->merchantUtils->getMerchantCurrent()->getId());

$qb->andWhere(

+ 1
- 1
ShopBundle/Resources/views/backend/default/menu.html.twig Visa fil

@@ -24,7 +24,7 @@
{% if item.icon is not empty %}<i class="fa fa-fw {{ item.icon }}"></i>{% endif %}
<p>{{ item.label|trans(domain = translation_domain) }}
{% if item.children|default([]) is not empty %}<i class="right fas fa-angle-left"></i>{% endif %}
{% if item.params.count_menu_item is defined %}<span class="badge badge-{{ item.params.alert is defined ? 'danger' : 'info' }} right">{{ count_menu_items(item.params.count_menu_item) }}</span>{% endif %}
{% if item.params.count_menu_item is defined and count_menu_items(item.params.count_menu_item) > 0 %}<span class="badge badge-{{ item.params.alert is defined ? 'danger' : 'info' }} right">{{ count_menu_items(item.params.count_menu_item) }}</span>{% endif %}
</p>
</a>
{% endif %}

Laddar…
Avbryt
Spara