Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: .map(Number) creates problems if preselect is not an id but a st…
…ring (#206) * fix: .map(Number) creates problems if preselect is not an id but a string this is checking if filterGroups in fieldConfig contains 'relation' and only then maps to Number. This could still cause an issue, if a field contains ids and strings. I couldn't find a usecase for this, but something to think about. Another solution would be to cast the key in FilterGroupHelper->getGroupValuesForFilterGroup to string and we can remove the map function altogether. Function is only used in the pimcore_ecommerceframework_index_getvaluesforfilterfield route and therefor should not cause other problems * Introduce method for preselect value --------- Co-authored-by: mattamon <[email protected]>
- Loading branch information