Skip to content

Commit 96e0097

Browse files
authored
Merge pull request #19 from dachcom-digital/Add_null_coalescing_operator_to_AssetListBuilder
Add null coalescing operator to asset list builder
2 parents dc1a8d5 + ac29a8f commit 96e0097

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

UPGRADE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Upgrade Notes
22

3+
## 2.0.1
4+
- [BUGFIX] Add null coalescing operator to `$options['asset_limit']` in `AssetListBuilder:getList()`
5+
36
## Migrating from Version 1.x to Version 2.0.0
47

58
### Global Changes
@@ -14,4 +17,4 @@
1417

1518
***
1619

17-
1.x Upgrade Notes: https://github.com/dachcom-digital/dynamic-search-data-provider-trinity/blob/1.x/UPGRADE.md
20+
1.x Upgrade Notes: https://github.com/dachcom-digital/dynamic-search-data-provider-trinity/blob/1.x/UPGRADE.md

src/DsTrinityDataBundle/Service/Builder/AssetListBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function buildById(int $id): ?ElementInterface
5555
protected function getList(array $options): Asset\Listing
5656
{
5757
$allowedTypes = $options['asset_types'];
58-
$limit = $options['asset_limit'];
58+
$limit = $options['asset_limit'] ?? 0;
5959
$additionalParams = $options['asset_additional_params'];
6060

6161
$list = new Asset\Listing();

0 commit comments

Comments
 (0)