mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 20:07:24 +00:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user