Skip to content

Commit

Permalink
NEXT-25251 - NEXT-23512 - Fix CMS service collect function for array …
Browse files Browse the repository at this point in the history
…values

fixes shopware#2959
  • Loading branch information
lacknere authored and NiklasLimberg committed Feb 21, 2023
1 parent 59ffbcc commit 62b9100
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Fix CMS service collect function for array values
issue: NEXT-23512
author: Elias Lackner
author_email: [email protected]
author_github: @lacknere
---
# Administration
* Changed `getCollectFunction` function in `cmsService` to work with array values by flattening the wrapping array.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function getCollectFunction() {
entityCount += 1;

const entityData = {
value: [elem.config[configKey].value],
value: [elem.config[configKey].value].flat(),
key: configKey,
searchCriteria: entity.criteria ? entity.criteria : new Criteria(1, 25),
...entity,
Expand Down

0 comments on commit 62b9100

Please sign in to comment.