Browse Source

Merge branch 'develop'

master
Guillaume 2 years ago
parent
commit
c2111522a7
3 changed files with 2 additions and 3 deletions
  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 View 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 View File

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



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

+ 1
- 1
Repository/Product/ProductCategoryStore.php View 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…
Cancel
Save