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>
38 lines
1.1 KiB
PHTML
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';
|