Files
breadcrumb-the-shire/modules/helpdesk/pages/helpdesk/ticket(default).phtml
fs a5213977ca fix(helpdesk): drop stale require of removed app-flash partial
Commit 4890a28 folded templates/partials/app-flash.phtml into
app-toast-stack.phtml, which the base layout now mounts itself. 14
helpdesk views still required the deleted partial and crashed every
helpdesk page with a 500 (Failed opening required app-flash.phtml).
Remove the redundant requires; the unified toast stack continues to
render flash messages via the layout.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 07:59:51 +02:00

38 lines
1.1 KiB
PHTML

<?php
/**
* @var string $ticketNo
* @var string $fromCustomerNo
* @var array|null $ticket
* @var bool $connectionError
* @var string $ticketCustomerNo
* @var string $ticketDescription
* @var string $ticketCommunicationUrl
*/
$ticketNo = $ticketNo ?? '';
$fromCustomerNo = $fromCustomerNo ?? '';
$ticket = is_array($ticket ?? null) ? $ticket : null;
$connectionError = $connectionError ?? false;
$ticketCustomerNo = $ticketCustomerNo ?? '';
$ticketDescription = $ticketDescription ?? '';
$ticketCommunicationUrl = $ticketCommunicationUrl ?? '';
$backUrl = $ticketCustomerNo !== '' ? lurl('helpdesk/debitor/' . rawurlencode($ticketCustomerNo)) : lurl('helpdesk');
$titlebar = [
'title' => t('Ticket') . ' ' . $ticketNo,
'backHref' => $backUrl,
'backTitle' => t('Back'),
'actions' => $ticket !== null ? [
[
'label' => t('Refresh data'),
'type' => 'button',
'name' => 'ticket-refresh',
'class' => 'secondary outline',
],
] : [],
];
require templatePath('partials/app-details-titlebar.phtml');
require __DIR__ . '/../../templates/helpdesk-ticket-detail.phtml';