diff --git a/modules/visa/Controllers/VisaController.php b/modules/visa/Controllers/VisaController.php index 5366afcc0ad250879974cbd40f60d0e29922bcfd..ef6c123a281cfd8823c84c5fece2a0db2303cebb 100644 --- a/modules/visa/Controllers/VisaController.php +++ b/modules/visa/Controllers/VisaController.php @@ -237,7 +237,7 @@ class VisaController $pathToFind = $value['path'] . str_replace(strrchr($value['filename'], '.'), '.pdf', $value['filename']); $isConverted = false; foreach ($attachments as $tmpKey => $tmpValue) { - if (strpos($value['format'], 'xl') !== 0 && $tmpValue['attachment_type'] == 'converted_pdf' && ($tmpValue['path'] . $tmpValue['filename'] == $pathToFind)) { + if (strpos($value['format'], 'xl') !== 0 && $value['format'] != 'pptx' && $tmpValue['attachment_type'] == 'converted_pdf' && ($tmpValue['path'] . $tmpValue['filename'] == $pathToFind)) { if ($value['status'] != 'SIGN') { $viewerId = $tmpValue['res_id']; }