Преглед изворни кода

Merge branch 'develop'

master
Guillaume Bourgeois пре 1 година
родитељ
комит
5d930e2768
2 измењених фајлова са 11 додато и 5 уклоњено
  1. +10
    -4
      Model/Product/ProductFamilyModel.php
  2. +1
    -1
      Repository/Product/ProductFamilyRepositoryQuery.php

+ 10
- 4
Model/Product/ProductFamilyModel.php Прегледај датотеку

@@ -49,11 +49,17 @@ abstract class ProductFamilyModel extends AbstractFullEntity implements ProductP
const QUALITY_LABEL_RECUP = 'recup';

static $organicLabels = [
self::QUALITY_LABEL_AB,
self::QUALITY_LABEL_NP,
self::QUALITY_LABEL_HVE,
self::QUALITY_LABEL_TVVR
self::QUALITY_LABEL_AB,
self::QUALITY_LABEL_NP,
self::QUALITY_LABEL_HVE,
self::QUALITY_LABEL_TVVR
];

static $organicStrictLabels = [
self::QUALITY_LABEL_AB,
self::QUALITY_LABEL_NP
];

static $geographicLabels = [
self::QUALITY_LABEL_AOC,
self::QUALITY_LABEL_AOP,

+ 1
- 1
Repository/Product/ProductFamilyRepositoryQuery.php Прегледај датотеку

@@ -140,7 +140,7 @@ class ProductFamilyRepositoryQuery extends AbstractRepositoryQuery
{
return $this->innerJoin('.qualityLabels', 'qualityLabel')
->andWhere('qualityLabel.devAlias IN (:organicLabels)')
->setParameter(':organicLabels', ProductFamilyModel::$organicLabels);
->setParameter(':organicLabels', ProductFamilyModel::$organicStrictLabels);
}

public function filterIsNovelty()

Loading…
Откажи
Сачувај