Problem/Motivation

If you have view with a header, and the header is set to "Display even if view has no result.", the header is not shown when there is no result.

Steps to reproduce

  • 1. Create a new view
  • 2. Add a Header (global text area will work). and check the box for "Display even if view has no result".
  • NOTE: Do not set any other exposed inputs.
  • 3. Add the view to a page using a viewreference field
  • 4. View the page when there is no results for the view. The view is not shown

Proposed resolution

See patch. We need to check for the existence of a header, then check if that header is set to show when the view is empty.

Remaining tasks

Review and test patch once uploaded

Comments

swilmes created an issue. See original summary.

swilmes’s picture

swilmes’s picture

Status: Active » Needs review
swilmes’s picture

Issue summary: View changes
seanb’s picture

A fix for this has been added in #2919092: Viewsreference embeds Views without cache, breaking Dynamic page cache. Could you please check the latest dev version and let me know if this issue has been resolved?

swilmes’s picture

Hey, sorry for the late response. I'm doing some site updates and it looks like this was fixed!

swilmes’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.