Closed (fixed)
Project:
Webform2PDF
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2015 at 15:10 UTC
Updated:
26 Jan 2017 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pbosmans commentedPatch created for this notice.
Comment #2
sumitmadan commentedif ($email && (array_key_exists('exclude_empty',$email) && $email['exclude_empty']))can be changed to :
if ($email && isset($email['exclude_empty']))Also change status to "Needs Review" after submitting a patch. :)
Comment #3
danchadwick commentedThis should be fixed in webform2pdf, which is creating the incomplete email. Or is there a reason it can't?
We avoid adding tests for data that must be there.
Comment #4
danchadwick commentedMoving to the webform2pdf issue queue for further development.
Comment #5
br0kenBut why we can't reinsured and add
isset()? This simple check prevent for future notices.Better to check array indexes than not to check.
Comment #6
br0kenComment #7
br0kenI've also created a patch to Webform (https://www.drupal.org/node/2601546).
Comment #8
br0kenWhat we gonna do with this?
Comment #9
ladybug_3777 commentedI'm curious at where this issue stands. I am experiencing this issue when using the webform2pdf module as well.I've following related issue links that have gone from that module over the webform, back to webform2pdf, and once again back to webform.
To be honest I'm not sure what the recommended patch to use is anymore. Can someone set me straight? Thanks!
Comment #10
ladybug_3777 commentedI took the path of least resistance here and applied this patch (it seemed the simplest and least intrusive) : webform-exclude_empty-2499749-6.patch
I can confirm that the error message is gone. I have some more testing to do, but so far so good.
Comment #11
br0ken@ladybug_3777, this patch is correct.
Comment #12
ladybug_3777 commentedThank you Br0kEN!
Comment #13
michel.settembrino commentedI had the same issue and patch "webform-exclude_empty-2499749-6.patch" solves it.
Thanks!
Regards,
Michel.
Comment #14
br0kenComment #16
br0ken