Why views display empty attachment div when view is empty? Default view is not displaying anything, and attachment attached to it display this when empty

<div class="attachment attachment-before">
<div class="view view-myview view-id-myveiw view-display-id-myview_attachment"></div>
</div>

Is this normal behaviour? Because I want to override views-view.tpl.php and $attachment_before is never empty, and I need to display message when default view and his attachment view is empty.

Comments

briand44’s picture

I am having this same issue. I wrote a preprocess function that adds a new class to the classes array when the view result is empty. Probably not a good long term solution but it works for now.

Anonymous’s picture

I can confirm this bug.

Anonymous’s picture

Issue summary: View changes

misstype