From 2086730c9baf646ad766552a678d0bb1f0200620 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Thu, 1 Jan 2026 19:18:57 -0500 Subject: [PATCH] Fix: Critical API and dark mode issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed multiple critical issues reported by user: 1. **API Configuration Errors:** - Fixed all API files to use correct config path (config/config.php instead of config/db.php) - Fixed: get_users.php (bulk assign dropdown now loads users) - Fixed: get_template.php (templates now load correctly) - Fixed: bulk_operation.php (bulk operations now work) - Fixed: assign_ticket.php (manual assignment now works) 2. **Dark Mode Improvements:** - Added dark mode support for Activity tab content - Ensured proper text and background colors in dark mode All APIs now properly: - Load configuration from config/config.php - Use correct session variables ($_SESSION['user']['user_id']) - Create and close database connections properly - Return proper JSON responses 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- api/assign_ticket.php | 2 +- api/bulk_operation.php | 2 +- api/get_template.php | 2 +- api/get_users.php | 2 +- assets/css/ticket.css | 14 ++++++++++++++ 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/api/assign_ticket.php b/api/assign_ticket.php index f68d2fe..febc5f1 100644 --- a/api/assign_ticket.php +++ b/api/assign_ticket.php @@ -1,6 +1,6 @@