Hardcoded filepath in generated php files in /modules/AOS_PDF_Templates/PDF_Lib/ttfonts/ #9235
Labels
Area: Clean Up
Issues & PRs related to all things regarding to technical debt and log files
Area: PDFs
Issues & PRs related to all things regarding PDFs
Priority:Moderate
Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
Creation of *.php files containing complete filepath in directory:
/public_html/modules/AOS_PDF_Templates/PDF_Lib/ttfontdata/
The following php files are created there:
My issue is that they contain the full path to a font file, instead of a relative path.
Snippet of a file above:
Expected Behavior
A 'dynamic' absolute file path so it won't bother GIT repository
Example:
$ttffile=realpath( dirname( __FILE__ ) . '../ttfonts/DejaVuSansCondensed-BoldOblique.ttf');
Actual Behavior
The full path as string is put in the generated php files.
The files itself are not ignored and appear as untracked files:
Possible Fix
Steps to Reproduce
I can't find code that these ttfontdata files actually creates.
After a fresh Suitecrm v7.11.20 install, one did appear after creating a pdf template and printing a Quote with it.
Context
Using GIT
Your Environment
The text was updated successfully, but these errors were encountered: