Upload via GUI (364 Dateien)

This commit is contained in:
2026-11-01 11:16:18 +00:00
parent 25beaea671
commit 257fbc1e55
2 changed files with 23 additions and 1 deletions
@@ -27,6 +27,6 @@ if ($holderId !== (int) $staff['id']) {
$n->execute([$holderId]);
$name = (string) ($n->fetchColumn() ?: 'einem anderen Mitarbeiter');
}
$pdo->prepare('UPDATE tickets SET locked_by = NULL, locked_at = NULL WHERE id = ?')->execute([$ticket['id']]);
$pdo->prepare('UPDATE tickets SET locked_by = NULL, locked_at = NULL, updated_at = updated_at WHERE id = ?')->execute([$ticket['id']]);
log_activity($pdo, (int) $ticket['id'], (int) $staff['id'], $name !== '' ? "Sperre von \"{$name}\" durch Admin aufgehoben" : 'Sperre manuell aufgehoben');
api_json(['ok' => true, 'unlocked' => true]);