Merge branch 'release/7.4' into dev

pull/6431/head
Jens Ulferts 6 years ago
commit 223609028a
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      app/models/work_package/pdf_export/attachments.rb

@ -52,7 +52,7 @@ module WorkPackage::PdfExport::Attachments
# Access the local file. For Carrierwave attachments, this will be blocking.
file_path = attachment.file.local_file.path
# Fit the image roughly in the center of each cell
pdf.make_cell(image: file_path, fit: [available_width, 250], position: :center)
pdf.make_cell(image: file_path, fit: [available_width, 125], position: :center)
rescue => e
Rails.logger.error { "Failed to attach work package image to PDF: #{e} #{e.message}" }
nil

Loading…
Cancel
Save