mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
Admin messages use the same colours as the rest of ITFlow - red after archiving, removing, unlinking or cancelling something and green after restoring it or Undo - covering tags, categories, custom links, payment methods, roles, SLAs, ticket statuses, starter content, offices, closure days, backups, app logs, RMM clients, invites, queued emails and texts, and the company logo
This commit is contained in:
@@ -76,7 +76,7 @@ if (isset($_GET['archive_payment_method']) || isset($_GET['restore_payment_metho
|
||||
$cleared = paymentMethodSetArchived($row, $archive);
|
||||
$no_longer = $cleared ? ' - no longer the default for ' . implode(' or ', array_map(function ($way) { return $way === 'in' ? 'payments' : 'expenses'; }, $cleared)) : '';
|
||||
logAudit("Payment Method", $archive ? "Archive" : "Restore", "$session_name " . ($archive ? 'archived' : 'restored') . " payment method " . escapeSql($row['payment_method_name']) . $no_longer, 0, intval($row['payment_method_id']));
|
||||
flashAlert("Payment method <strong>" . escapeHtml($row['payment_method_name']) . "</strong> " . ($archive ? "archived - it isn't offered any more$no_longer" : 'restored'));
|
||||
flashAlert("Payment method <strong>" . escapeHtml($row['payment_method_name']) . "</strong> " . ($archive ? "archived - it isn't offered any more$no_longer" : 'restored'), $archive ? 'error' : 'success');
|
||||
if ($undo) {
|
||||
undoOfferArchived($undo, '', $row['payment_method_name'], [$defaults]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user