Save Reports to File Fields
New Features:
- After pulling data into a report, users can save a PDF of it to a file upload field in their chosen record. This is not compatible with batch filling, and will override previously saved files. When saving to a repeatable event/instrument, the PDF will be saved to the latest instance.
Fixes:
- Module previously removed elements from a table row with data in it, which placed data under incorrect columns.
- Images were previously not found in PDF downloads. The src for images has been changed to a url, and DOMPDF sets isRemoteEnabled = true, which should fix the issue going forward. Images in existing reports will need to update their image srcs to urls.
Changes:
- Re-worked how secondary labels are retrieved, by retrieving them all before looping through a project's records and building the dropdown list. The goal was to reduce loading times on the index page.
Dependency Changes:
- Upgraded Smarty to v3.1.39, which includes fixes for security issues.