瀏覽代碼

Merge branch 'develop'

master
Guillaume 2 年之前
父節點
當前提交
c2111522a7
共有 3 個檔案被更改,包括 2 行新增3 行删除
  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 查看文件

@@ -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 查看文件

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



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

+ 1
- 1
Repository/Product/ProductCategoryStore.php 查看文件

@@ -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…
取消
儲存