Skip to content

[5.x] Improve checks for emptiness in productlist#1312

Open
Jade-GG wants to merge 3 commits into
masterfrom
Jade-GG-patch-3
Open

[5.x] Improve checks for emptiness in productlist#1312
Jade-GG wants to merge 3 commits into
masterfrom
Jade-GG-patch-3

Conversation

@Jade-GG

@Jade-GG Jade-GG commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

When given an empty productlist, you get an error because entity_id:() is not a valid filter in elasticsearch.

The original check only checked for empty arrays in PHP. With this PR I've added a check for js arrays, and also for any iterable (for example, collections didn't work properly either)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant