Doesn't obey "display if no result" setting

Created on 25 June 2021, about 3 years ago
Updated 16 January 2024, 6 months ago

I would suggest adding a conditional statement in render():

if ($this->options['empty'] || count($this->view->result) > 0) {
  // @see \Drupal\block\BlockViewBuilder::buildPreRenderableBlock
  // @see template_preprocess_block()
  $element = [
    '#theme' => 'block',
   ....
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary djg_tram

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.69.0 2024