FIX Images in TCPDF are removed by TCPDF when it should not

This commit is contained in:
Laurent Destailleur 2019-11-30 17:19:25 +01:00
parent cb2bf00ef8
commit 958ffa6ec8
2 changed files with 17 additions and 1 deletions

View File

@ -52,6 +52,21 @@ Replace call to serialize_val with no bugged value
TCPDF:
------
* Replace in tcpdf.php:
if (isset($this->imagekeys)) {
foreach($this->imagekeys as $file) {
unlink($file);
}
}
with
if (isset($this->imagekeys)) {
foreach($this->imagekeys as $file) {
// unlink($file);
}
}
* To avoid to have QRcode changed because generated with a random mask, replace
define('QR_FIND_FROM_RANDOM', 2);
with

View File

@ -7798,7 +7798,8 @@ class TCPDF {
}
if (isset($this->imagekeys)) {
foreach($this->imagekeys as $file) {
unlink($file);
// @CHANGE DOL
// unlink($file);
}
}
}