Browse Source

Merge branch 'develop'

master
Fab 4 years ago
parent
commit
2e878ecc54
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      ShopBundle/Repository/ProductRepository.php
  2. +1
    -1
      ShopBundle/Resources/views/backend/default/menu.html.twig

+ 1
- 0
ShopBundle/Repository/ProductRepository.php View File

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

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

Loading…
Cancel
Save