Calendar: every agent has a color picked in Account Preferences or Admin Users, and their booked tickets and assigned events are drawn in it with their first name beside the time; events are assigned to agents from New Event, Edit and the quick look, with contacts and anyone else under Invite; Left behind under the calendar lists open tickets booked on a day that has gone, to drag back on; a 7 days view moves a day at a time and bookings at the same time sit side by side; Holidays shows the SLA closure days; what the calendar shows is kept to the account, and To schedule with Everyone lists everyone's unbooked tickets; database 3.8.4 adds user_settings.user_config_calendar_color and user_config_calendar_state; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 20:53:03 -05:00
parent d69015e2c7
commit bf1124570b
16 changed files with 812 additions and 65 deletions

View File

@@ -205,6 +205,7 @@ if (isset($_POST['edit_user'])) {
mysqli_query($mysqli, "UPDATE users SET user_name = '" . escapeSql($name) . "', user_email = '" . escapeSql($email) . "', user_role_id = " . intval($role['role_id']) . " WHERE user_id = $user_id");
$force_mfa = !empty($_POST['force_mfa']) ? 1 : 0;
mysqli_query($mysqli, "INSERT INTO user_settings SET user_id = $user_id, user_config_force_mfa = $force_mfa ON DUPLICATE KEY UPDATE user_config_force_mfa = $force_mfa");
calendarAgentColorSave($user_id, $_POST);
// An admin sees every client - their rules are left as they were, in case the role changes back
if (!intval($role['role_is_admin']) && isset($_POST['client_permission_shown'])) {