fix: RecurringTicketModel INSERT bind_param type string mismatch

next_run_at was typed 'i' (int) but stores a datetime string → should be 's'.
is_active was typed 's' (string) but stores 0/1 boolean → should be 'i'.
Positions 10-11 were swapped: 'ssssiiisssis' → 'ssssiiisssii'.
The UPDATE method already had the correct types; only INSERT was affected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-04 22:37:22 -04:00
parent 67a7d769f0
commit c2cd923d32
+1 -1
View File
@@ -58,7 +58,7 @@ class RecurringTicketModel {
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
$stmt = $this->conn->prepare($sql);
$stmt->bind_param('ssssiiisssis',
$stmt->bind_param('ssssiiisssii',
$data['title_template'],
$data['description_template'],
$data['category'],