Browse Source

Correctif appel findAllParents de productCategoryRepository

feature/export_comptable
Guillaume 4 years ago
parent
commit
0cf3409e26
2 changed files with 1 additions and 14 deletions
  1. +0
    -13
      ShopBundle/Services/CustomCKFinderAuth.phpRENAME
  2. +1
    -1
      ShopBundle/Twig/FrontendTwigExtension.php

+ 0
- 13
ShopBundle/Services/CustomCKFinderAuth.phpRENAME View File

<?php

namespace Lc\ShopBundle\Services;

use CKSource\Bundle\CKFinderBundle\Authentication\Authentication as AuthenticationBase;

class CustomCKFinderAuth extends AuthenticationBase
{
public function authenticate()
{
return true;
}
}

+ 1
- 1
ShopBundle/Twig/FrontendTwigExtension.php View File



public function getProductCategories() public function getProductCategories()
{ {
$categories = $this->productCategoryRepository->findAllParents($this->merchantUtils->getMerchantCurrent());
$categories = $this->productCategoryRepository->findAllParents(false);
return $categories; return $categories;
} }



Loading…
Cancel
Save