Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Result Summary handler does not render any output if the view has no results regardless of "Display even if view has no result" is checked.
In render(), it simply checks for a $total to determine whether to render the output.
Comment | File | Size | Author |
---|---|---|---|
#1 | no_output_display_even_if_no_results-2200899-1.patch | 598 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedPatch to force rendering if "Display even if view has no result" is checked.
Comment #2
tatarbjIt is working on our sites, thanks rsmylski.
Comment #3
adee147 CreditAttribution: adee147 commentedI was about to submit the exact same patch. Its good that I searched for existing issue first :)
Comment #4
SpleshkaConfirm that this patch works as expected.
Comment #5
ali_b CreditAttribution: ali_b commentedworking
Comment #6
kopeboy CreditAttribution: kopeboy commentedStill not included?!
Comment #7
SpleshkaI don't think we can increase the priority just because the patch is not being commited for a long time. Priority of this issue is still normal, but we all want to get it commited :)
Comment #8
colanWe've recently switched our testing from the old qa.drupal.org to DrupalCI. Because of a bug in the new system, #2623840: Views (D7) patches not being tested, older patches must be re-uploaded. On re-uploading the patch, please set the status to "Needs Review" so that the test bot will add it to its queue.
If all tests pass, change the Status back to "Reviewed & tested by the community". We'll most likely commit the patch immediately without having to go through another round of peer review.
We apologize for the trouble, and appreciate your patience.
Comment #9
gerson.analista CreditAttribution: gerson.analista as a volunteer commentedPatch #1 worked in Views 3.14.
Comment #10
DamienMcKennaClosed an exact duplicate: #2469781: 'Display even if view has no result' is ignored for "result summary" in Header and Footer
Comment #11
vinmassaro CreditAttribution: vinmassaro commentedPatch in #1 fixes the issue, thanks.
Comment #12
akucherov CreditAttribution: akucherov commentedPatch #1 is still actual for Views 3.20.
Comment #13
tatarbjI beleive we have totally missed the message by @colan, so i'm changing the status to needs review to allow tests to be executed.
Comment #14
tatarbjRe-tests are OK, so i'm moving it back to RTBC in favor of previous comments.
Comment #15
System Lord CreditAttribution: System Lord commentedIf it matters, I'm using 7.x-3.22 and applied patch (manually) and it works.
Comment #17
DamienMcKennaCommitted. Thanks.
Comment #19
RgnYLDZ CreditAttribution: RgnYLDZ commentedI wanted to do the patch manually but as I see in my code the patch is already applied on line 104. Still the header is not shown on my site if I check "Display even if view has no result" Also not in views preview.
Comment #20
RgnYLDZ CreditAttribution: RgnYLDZ commentedIgnore #19 I guess it was a cache after I removed the no results content.