Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/03_Installation/01_Upgrade_Notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Upgrade Notes

#### v2.0.0
Added `bool` as possible type to `$condition` parameter of `addCondition` function in `ProductListInterface` (and all implementing classes).

#### v1.2.1
- Removed the package "rybakit/twig-deferred-extension". If you extend the twig layout from the E-Commerce Framework,
please check if custom CSS/JS code added by `pimcore_head_script` and `pimcore_head_link` is still working.
2 changes: 1 addition & 1 deletion src/IndexService/ProductList/DefaultFindologic.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function getProducts(): array
return $this->products;
}

public function addCondition(array|string $condition, string $fieldname = ''): void
public function addCondition(array|string|bool $condition, string $fieldname = ''): void
{
$this->products = null;
$this->conditions[$fieldname][] = $condition;
Expand Down
2 changes: 1 addition & 1 deletion src/IndexService/ProductList/DefaultMysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getProducts(): array

protected ?float $conditionPriceTo = null;

public function addCondition(array|string $condition, string $fieldname = ''): void
public function addCondition(array|string|bool $condition, string $fieldname = ''): void
{
$this->products = null;
$this->conditions[$fieldname][] = $condition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function setProductPositionMap(array $productPositionMap): static
*
* @param string $fieldname - must be set for elastic search
*/
public function addCondition(array|string $condition, string $fieldname = ''): void
public function addCondition(array|string|bool $condition, string $fieldname = ''): void
{
$this->filterConditions[$fieldname][] = $condition;
$this->preparedGroupByValuesLoaded = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function setProductPositionMap(array $productPositionMap): static
*
* @param string $fieldname - must be set for elastic search
*/
public function addCondition(array|string $condition, string $fieldname = ''): void
public function addCondition(array|string|bool $condition, string $fieldname = ''): void
{
$this->filterConditions[$fieldname][] = $condition;
$this->preparedGroupByValuesLoaded = false;
Expand Down
2 changes: 1 addition & 1 deletion src/IndexService/ProductList/ProductListInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getProducts(): array;
* and exclude functionality in group by results
*
*/
public function addCondition(array|string $condition, string $fieldname = ''): void;
public function addCondition(array|string|bool $condition, string $fieldname = ''): void;

/**
* Adds query condition to product list for fulltext search
Expand Down