Archive clients, ticket replies, accounts and SLAs and restore anything without an Are you sure prompt, with Undo added for ticket replies and accounts, real plurals and bold counts in bulk messages, and flashAlert for asset and contact note messages

This commit is contained in:
johnnyq
2026-11-20 23:46:36 -05:00
parent 74d571c029
commit df64d82f3a
173 changed files with 405 additions and 369 deletions

View File

@@ -1211,7 +1211,7 @@ function smsLogState(array $row): array
$error = trim((string) $row['sms_message_error']);
// Waiting for the morning - says when
if ($status === 'queued' && !empty($row['sms_message_send_after']) && strtotime($row['sms_message_send_after']) > time() && $error === '') {
$error = 'Waiting until ' . date('g:ia', strtotime($row['sms_message_send_after'])) . ' - it would land at night';
$error = 'Waiting until ' . date('g:i A', strtotime($row['sms_message_send_after'])) . ' - it would land at night';
}
return ['key' => $status, 'label' => $label, 'badge' => $badge, 'icon' => $icon, 'error' => $error];
}
@@ -1478,7 +1478,7 @@ function smsTicketSubject(array $row): string
function smsWhenText(string $datetime): string
{
$at = strtotime($datetime);
$time = date('g:ia', $at);
$time = date('g:i A', $at);
if (date('Y-m-d', $at) === date('Y-m-d')) {
return "today at $time";
}