Empty blocks are not being excluded

Created on 11 October 2018, about 6 years ago
Updated 8 September 2023, over 1 year ago

Display suite renders the block even though it's empty.

Steps to replicate:
- Create a view block that doesn't return any results
- Check the "Hide block when content is empty"
- Reference the block from display suite

Proposed solution:
Check if the markup returned by the render method is empty, if it is, don't add it to the elements array.

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mottihoresh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024