Extension - Templates in HTML format - bugs when there is , or ; in filename
Posted: 08 Mar 2022, 15:03
We have found a new bug connected with exporting records functionality in the extension.
Where: ext/templates/export_templates - HTML template (https://docs.rukovoditel.net/index.php?p=55)
What: In case there is a character , or ; in name of the file and you try to download the file, the file name extension (.docx, .pdf) in the name of the file is missing and the file cannot be opened. It seems that this bug affects only Chrome and Safari (both Windows and Mac), in Firefox it works ok.
How replicate:
1. Create an HTML template for any entity.
2. Try downloading the file. Before hitting the download button, type any name with , or ; e.g. "Confirmation from Company, Inc.".
3. Downloaded file is without extension.
4. Try downloading again without , or ; in the filename.
5. Downloaded file is fine.
Where: ext/templates/export_templates - HTML template (https://docs.rukovoditel.net/index.php?p=55)
What: In case there is a character , or ; in name of the file and you try to download the file, the file name extension (.docx, .pdf) in the name of the file is missing and the file cannot be opened. It seems that this bug affects only Chrome and Safari (both Windows and Mac), in Firefox it works ok.
How replicate:
1. Create an HTML template for any entity.
2. Try downloading the file. Before hitting the download button, type any name with , or ; e.g. "Confirmation from Company, Inc.".
3. Downloaded file is without extension.
4. Try downloading again without , or ; in the filename.
5. Downloaded file is fine.