restezconnectes / send-pdf-for-contact-form-7

Send the PDF for Contact Form 7 plugin will allow you to recover the data yourself via your form to insert them into a PDF built and prepared by you.
https://restezconnectes.fr/tutoriel-wordpress-lextension-send-pdf-for-contact-form-7/
GNU General Public License v3.0
15 stars 17 forks source link

file not attached when seconds added to [date] #23

Closed Reghyz closed 2 years ago

Reghyz commented 2 years ago

if i use this format : YmdHis i see the correct "timestamp" right to the date format input field it in admin after saving the changes, but when submitting the mail no pdf is attached to the mail (it works with the default one set as "dmY"). I can see that the pdf file has been generated with the correct name.

( i wanted to try using date with U ou YmdHis format to obtain uniques filenames to circumvent the caching session ID problem )

Reghyz commented 2 years ago

oh, i think i understand whats wrong, it works but wpcf7pdf_name_pdf() is called at differents places to retrieve the filename, with [date] formated with second in the name calculated inside it, this will never returns two time the same filename

restezconnectes commented 2 years ago

Hi!

Where is called with [date]?

I don't see that!

Thanks

restezconnectes commented 2 years ago

Hi!

Thanks to try the lastest version. The bug is fixed.

Thanks