Skip to content

Commit 91ee7ef

Browse files
Merge branch '2025.4' into 2026.1
2 parents b117810 + 37d7b98 commit 91ee7ef

48 files changed

Lines changed: 1816 additions & 259 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/configuration.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
_defaults:
3+
autowire: true
4+
autoconfigure: true
5+
public: false
6+
7+
Pimcore\Bundle\StudioBackendBundle\Configuration\Share\Service\ConfigurationShareServiceInterface:
8+
class: Pimcore\Bundle\StudioBackendBundle\Configuration\Share\Service\ConfigurationShareService

config/grid.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ services:
4545
Pimcore\Bundle\StudioBackendBundle\Grid\Service\FavoriteServiceInterface:
4646
class: Pimcore\Bundle\StudioBackendBundle\Grid\Service\FavoriteService
4747

48-
Pimcore\Bundle\StudioBackendBundle\Grid\Service\UserRoleShareServiceInterface:
49-
class: Pimcore\Bundle\StudioBackendBundle\Grid\Service\UserRoleShareService
50-
5148
Pimcore\Bundle\StudioBackendBundle\Grid\Service\SaveConfigurationServiceInterface:
5249
class: Pimcore\Bundle\StudioBackendBundle\Grid\Service\SaveConfigurationService
5350

config/search.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,24 @@ services:
2727
Pimcore\Bundle\StudioBackendBundle\Search\Hydrator\Preview\DocumentHydratorInterface:
2828
class: Pimcore\Bundle\StudioBackendBundle\Search\Hydrator\Preview\DocumentHydrator
2929

30+
Pimcore\Bundle\StudioBackendBundle\Search\Hydrator\ConfigurationHydratorInterface:
31+
class: Pimcore\Bundle\StudioBackendBundle\Search\Hydrator\ConfigurationHydrator
32+
33+
Pimcore\Bundle\StudioBackendBundle\Search\Hydrator\DetailedConfigurationHydratorInterface:
34+
class: Pimcore\Bundle\StudioBackendBundle\Search\Hydrator\DetailedConfigurationHydrator
35+
3036
#
3137
# Repositories
3238
#
3339

3440
Pimcore\Bundle\StudioBackendBundle\Search\Repository\SearchRepositoryInterface:
3541
class: Pimcore\Bundle\StudioBackendBundle\Search\Repository\SearchRepository
3642

43+
Pimcore\Bundle\StudioBackendBundle\Search\Repository\SavedSearchConfigurationRepositoryInterface:
44+
class: Pimcore\Bundle\StudioBackendBundle\Search\Repository\SavedSearchConfigurationRepository
45+
arguments:
46+
- "@doctrine.orm.default_entity_manager"
47+
3748
#
3849
# Services
3950
#
@@ -43,6 +54,9 @@ services:
4354
arguments:
4455
$previewHydratorLocator: '@search.element_preview.service_locator'
4556

57+
Pimcore\Bundle\StudioBackendBundle\Search\Service\SavedSearchConfigurationServiceInterface:
58+
class: Pimcore\Bundle\StudioBackendBundle\Search\Service\SavedSearchConfigurationService
59+
4660
#
4761
# Service Locator
4862
#

doc/03_Extending/02_Additional_and_Custom_Attributes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ For more details and frontend customization options, see the
239239
- `pre_response.quantity_value.unit_list`
240240
- `pre_response.recycle_bin.item`
241241
- `pre_response.role_tree_node`
242+
- `pre_response.saved_search_configuration`
243+
- `pre_response.saved_search_detailed_configuration`
242244
- `pre_response.schedule`
243245
- `pre_response.schedule.action_type`
244246
- `pre_response.select_option.detail`

src/ClassificationStore/Repository/CollectionConfigRepository.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ public function getPaginatedCollectionsByStore(
4949
$this->applyCollectionIdsFilter($list, $collectionIds);
5050
}
5151

52-
if ($searchTerm !== null) {
53-
$this->searchHelperService->applySearchTermFilter($list, $searchTerm);
54-
}
52+
$this->searchHelperService->applySearchTermFilter($list, $searchTerm);
5553

5654
return $list->load();
5755
}

src/ClassificationStore/Repository/Configuration/CollectionRepository.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ private function applySearchCondition(Listing $listing, FilterParameter $paramet
135135
return;
136136
}
137137

138-
if ($searchFilter->getFilterValue() === '' || $searchFilter->getFilterValue() === null) {
139-
return;
140-
}
141-
142138
$this->searchHelperService->applySearchTermFilter($listing, $searchFilter->getFilterValue());
143139
}
144140
}

src/ClassificationStore/Repository/Configuration/GroupRepository.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ private function applySearchCondition(Listing $listing, FilterParameter $paramet
130130
return;
131131
}
132132

133-
if ($searchFilter->getFilterValue() === '' || $searchFilter->getFilterValue() === null) {
134-
return;
135-
}
136-
137133
$this->searchHelperService->applySearchTermFilter($listing, $searchFilter->getFilterValue());
138134
}
139135
}

src/ClassificationStore/Repository/Configuration/KeyRepository.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ private function applySearchCondition(Listing $listing, FilterParameter $paramet
227227
return;
228228
}
229229

230-
if ($searchFilter->getFilterValue() === '' || $searchFilter->getFilterValue() === null) {
231-
return;
232-
}
233-
234230
$this->searchHelperService->applyKeySearchFilter($listing, $searchFilter->getFilterValue());
235231
}
236232
}

src/ClassificationStore/Repository/GroupConfigRepository.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ public function getPaginatedGroupsByStore(
4747
$listing->setOrderKey('id');
4848
$listing->setCondition('storeId = ?', $storeId);
4949

50-
if ($searchTerm !== null) {
51-
$this->searchHelperService->applySearchTermFilter($listing, $searchTerm);
52-
}
50+
$this->searchHelperService->applySearchTermFilter($listing, $searchTerm);
5351

5452
if ($groupIds !== null) {
5553
$this->applyGroupIdsFilter($listing, $groupIds);

src/ClassificationStore/Repository/KeyGroupRelationRepository.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ private function getBaseListing(int $storeId, ?array $groupIds = null, ?string $
9696
$listing->setOrderKey('sorter');
9797
$this->applyGroupIdsFilter($listing, $groupIds);
9898

99-
if ($searchTerm !== null && $searchTerm !== '') {
100-
$this->searchHelperService->applyKeyGroupRelationSearchFilter($listing, $searchTerm);
101-
}
99+
$this->searchHelperService->applyKeyGroupRelationSearchFilter($listing, $searchTerm);
102100

103101
return $listing;
104102
}

0 commit comments

Comments
 (0)