Skip to content

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

Merged
royduin merged 7 commits into
masterfrom
Jade-GG-patch-3
Aug 5, 2026
Merged

[5.x] Improve checks for emptiness in productlist#1312
royduin merged 7 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)

@royduin
royduin merged commit 128e365 into master Aug 5, 2026
24 of 26 checks passed
@royduin
royduin deleted the Jade-GG-patch-3 branch August 5, 2026 09:41
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.

2 participants