commerce_invoice_pdf_create()'s $recreate param defaults to true. We want to save resources and do not recreate these files if they were already created.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2882224-2.patch | 2.29 KB | bbujisic |
commerce_invoice_pdf_create()'s $recreate param defaults to true. We want to save resources and do not recreate these files if they were already created.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2882224-2.patch | 2.29 KB | bbujisic |
Comments
Comment #2
bbujisic commentedHad to avoid using file_save_data() as it uses global user as owner of the PDF file. The file must always belong to the owner of the invoice.
Comment #4
bbujisic commented