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.

CommentFileSizeAuthor
#2 2882224-2.patch2.29 KBbbujisic

Comments

bbujisic created an issue. See original summary.

bbujisic’s picture

Status: Active » Needs review
StatusFileSize
new2.29 KB

Had 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.

  • bbujisic authored 0211ffc on 7.x-2.x
    Issue #2882224 by bbujisic: Do not recreate by default the PDF files if...
bbujisic’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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