EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix warning
Yurii8f28a9ad8d61
diff --git a/application/Espo/Core/Formula/Functions/ExtGroup/PdfGroup/GenerateType.php b/application/Espo/Core/Formula/Functions/ExtGroup/PdfGroup/GenerateType.phpindex 20893fcc4f..5845ab0fbf 100644--- a/application/Espo/Core/Formula/Functions/ExtGroup/PdfGroup/GenerateType.php+++ b/application/Espo/Core/Formula/Functions/ExtGroup/PdfGroup/GenerateType.php@@ -67,7 +67,7 @@ class GenerateType extends BaseFunction implements$entityType = $args[0];$id = $args[1];$templateId = $args[2];- $fileName = $args[3];+ $fileName = $args[3] ?? null;if (!$entityType || !is_string($entityType)) {$this->throwBadArgumentType(1, 'string');