In the _print_pdf_wkhtmltopdf function (print_pdf.pages.inc), when an error occurs and a PDF isn't produced the user should go to $print['url'], rather than the non-existent $meta['url'].
Patch to be attached in the next comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | print-no-var-named-meta-1896668-1.patch | 439 bytes | siliconmeadow |
Comments
Comment #1
siliconmeadow commentedPatch as mentioned.
Comment #2
siliconmeadow commentedWhoops. I'm such a D7 n00b!
Comment #3
mwesthof commentedI was thinking the same.
The code change works for me.
The bug causes:
and then redirects to the home page.
The code change changes the behaviour of the goto to stay on the current page.
Comment #4
simon georges commentedComment #5
jcnventuraThanks for the patch!
http://drupalcode.org/project/print.git/commit/c2aedb2
Comment #6
mwesthof commentedThanks for the patch and thanks for the commit! Pretty smooth bug squash. Awesome!