Registry Mirror
Skip to content

Conversation

@grandnode-dev

Copy link
Copy Markdown
Member

Type: bugfix

Issue

The slider's category, collection and brand zones show the slides of the page's entity, whose id comes as the widget's additional data. When a zone was rendered without it (a theme or page that does not pass it), GetPictureSliders got a null or empty id, skipped its entity filter and returned every published slide of that type: the slides of all categories together.

Solution

Those three zones ask for slides only with an entity id; without one the widget renders nothing, as for an entity without slides.

Breaking changes

None.

Testing

  • WidgetSliderComponentTests (new; Grand.Modules.Tests now references the plugin): the three zones with a null or empty id ask for no slides (fails on develop), and the category zone with an id asks for that category's slides.
  • Grand.Modules.Tests: 477 passed.

… no slides

The zones passed additionalData?.ToString() to GetPictureSliders; with no entity id the service skipped the entity filter and returned every published slide of the type, cached like the unfiltered list. A zone rendered without the id now shows nothing.
Copilot AI balanced review requested due to automatic review settings November 28, 2026 15:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@grandnode-dev
grandnode-dev merged commit 144846d into develop Nov 29, 2026
9 checks passed
@grandnode-dev
grandnode-dev deleted the fix/slider-zone-without-entity branch November 29, 2026 09:54
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