This commit is contained in:
2026-02-03 00:47:49 +01:00
parent 58aeead326
commit bb802b8b2c
3 changed files with 8 additions and 1 deletions

View File

@@ -2206,6 +2206,12 @@ class ApiKernel
private function handleTemplateReferences(): void
{
@file_put_contents(sys_get_temp_dir() . '/emailtemplate_debug.log', json_encode([
'time' => date(DATE_ATOM),
'tag' => 'handleTemplateReferences',
'input' => $this->in ?? null,
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "\n", FILE_APPEND);
$auth = $this->requireAuth();
$customerId = (int)($auth['customer_id'] ?? 0);
if ($customerId <= 0) {