Added security check report field and variable
This commit is contained in:
@@ -106,8 +106,14 @@ final class SecurityReportPdfService
|
||||
$progress = is_array($check['progress'] ?? null) ? $check['progress'] : [];
|
||||
$status = (string) ($check['status'] ?? SecurityCheckProcess::STATUS_OPEN);
|
||||
|
||||
// The owner-authored, customer-facing report text captured on the final step.
|
||||
$reportFields = is_array($processState[SecurityCheckProcess::STEP_REPORT]['fields'] ?? null)
|
||||
? $processState[SecurityCheckProcess::STEP_REPORT]['fields']
|
||||
: [];
|
||||
|
||||
return [
|
||||
'title' => t('Security check report'),
|
||||
'customer_report' => trim((string) ($reportFields[SecurityCheckProcess::FIELD_CUSTOMER_REPORT] ?? '')),
|
||||
'customer_name' => (string) ($check['debitor_name'] ?? ''),
|
||||
'customer_no' => (string) ($check['debitor_no'] ?? ''),
|
||||
'domain' => (string) ($check['domain_url'] ?? ($check['domain_no'] ?? '')),
|
||||
|
||||
Reference in New Issue
Block a user