Skip to content

[8.0-stable] fix: Filter nested elements by visibility when publishing pages#3595

Merged
tvdeyen merged 1 commit into8.0-stablefrom
backport/8.0-stable/pr-3593
Jan 26, 2026
Merged

[8.0-stable] fix: Filter nested elements by visibility when publishing pages#3595
tvdeyen merged 1 commit into8.0-stablefrom
backport/8.0-stable/pr-3593

Conversation

@alchemycms-bot
Copy link

Backport

This will backport the following commits from main to 8.0-stable:

Questions ?

Please refer to the Backport tool documentation

When publishing a page, only visible top-level elements were being
filtered. Nested elements were copied regardless of their public status,
which meant hidden nested elements would appear on the published version.

This adds a publishable_only option to DuplicateElement that filters nested
elements through the repository's visible method, ensuring only public
nested elements are copied to the published version.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
(cherry picked from commit adac074)
@tvdeyen tvdeyen enabled auto-merge January 26, 2026 08:37
@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.20%. Comparing base (10d8791) to head (69da29b).
⚠️ Report is 3 commits behind head on 8.0-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           8.0-stable    #3595   +/-   ##
===========================================
  Coverage       97.20%   97.20%           
===========================================
  Files             288      288           
  Lines            7575     7577    +2     
===========================================
+ Hits             7363     7365    +2     
  Misses            212      212           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tvdeyen tvdeyen merged commit dc8ae72 into 8.0-stable Jan 26, 2026
15 of 16 checks passed
@tvdeyen tvdeyen deleted the backport/8.0-stable/pr-3593 branch January 26, 2026 08:48
@alchemycms-bot alchemycms-bot bot mentioned this pull request Jan 28, 2026
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