Sfoglia il codice sorgente

Merge branch 'develop'

master
Guillaume 3 anni fa
parent
commit
c2111522a7
3 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +1
    -0
      Model/Product/ProductCategoryModel.php
  2. +0
    -2
      Repository/Product/ProductCategoryRepositoryQuery.php
  3. +1
    -1
      Repository/Product/ProductCategoryStore.php

+ 1
- 0
Model/Product/ProductCategoryModel.php Vedi File

@@ -61,6 +61,7 @@ abstract class ProductCategoryModel extends AbstractFullEntity implements TreeIn
$parent = $this->getParent();
$title = $parent ? $parent->getTitle() . ' - ' : '';
$title .= $this->getTitle();

return $title;
}


+ 0
- 2
Repository/Product/ProductCategoryRepositoryQuery.php Vedi File

@@ -30,8 +30,6 @@ class ProductCategoryRepositoryQuery extends AbstractRepositoryQuery
return $this;
}



public function hasProductFamilyOnline(): self
{
$this->joinProductFamilies();

+ 1
- 1
Repository/Product/ProductCategoryStore.php Vedi File

@@ -22,7 +22,7 @@ class ProductCategoryStore extends AbstractStore

public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
{
$query->orderBy('position');
$query->addOrderBy('.parent')->addOrderBy('.position');
return $query;
}


Loading…
Annulla
Salva