The global print field provided for use in views has a checkbox "Display even if view has no result", which I believe is expected to hide/show the view PDF link. Unfortunately I just tried it and it doesn't work (allows showing the link whether an empty resuolt is returned or not. I believe this is a bug.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ojchris37 created an issue. See original summary.

brolad’s picture

Status: Active » Needs review
StatusFileSize
new1.56 KB
brolad’s picture

StatusFileSize
new1.59 KB
KondratievaS’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new219.81 KB

Tested patch from #3 - works as expected

ojchris’s picture

@KondratievaS I think the best way to actually show it's working is from the Views result preview. Show the results when the option is checked vs when it's not.

KondratievaS’s picture

@ojchris37 yes, i did it, you can see on screenshot i have attached

jaydee1818’s picture

This also works for me - cheers.

attisan made their first commit to this issue’s fork.

  • attisan committed d163db7 on 8.x-2.x
    Issue #3183662 by attisan, Brolad: Option "Display even if view has no...
attisan’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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