diff --git a/DeskHub-Webseite/staff/departments.php b/DeskHub-Webseite/staff/departments.php index d802b0f1..9cf13074 100644 --- a/DeskHub-Webseite/staff/departments.php +++ b/DeskHub-Webseite/staff/departments.php @@ -17,6 +17,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { 'name' => $_POST['name'] ?? '', 'email' => $_POST['email'] ?? '', 'is_default' => !empty($_POST['is_default']), 'is_active' => ($_POST['status'] ?? 'active') === 'active', 'manager_id' => $_POST['manager_id'] ?? null, 'sla_plan_id' => $_POST['sla_plan_id'] ?? null, 'notes' => $_POST['notes'] ?? '', 'signature' => $_POST['signature'] ?? '', + 'auto_assign_mode' => $_POST['auto_assign_mode'] ?? 'none', 'auto_assign_staff_id' => $_POST['auto_assign_staff_id'] ?? null, ]); audit_log($staff['id'], ($action === 'create' ? 'Abteilung erstellt: ' : 'Abteilung aktualisiert: ') . trim($_POST['name'] ?? '')); flash('success', $action === 'create' ? 'Abteilung erstellt.' : 'Änderungen gespeichert.'); @@ -84,6 +85,8 @@ require __DIR__ . '/_header.php'; $curStatus = $_POST ? ($_POST['status'] ?? 'active') : (($editDept['is_active'] ?? 1) ? 'active' : 'inactive'); $curEmail = strtolower((string) $v('email', 'email')); $curManager = (string) $v('manager_id', 'manager_id'); + $curAutoMode = (string) $v('auto_assign_mode', 'auto_assign_mode', 'none'); + $curAutoStaff = (string) $v('auto_assign_staff_id', 'auto_assign_staff_id'); $isDefaultChecked = $_POST ? !empty($_POST['is_default']) : !empty($editDept['is_default']); $members = []; if ($editDept) { @@ -128,6 +131,21 @@ require __DIR__ . '/_header.php'; + + + + +

Gilt für Tickets aus Formular, E-Mail, API (z. B. Minecraft-Plugin) und Live-Chat. Eine Ticket-Regel mit „Mitarbeiter zuweisen“ hat Vorrang. Ist der Mitarbeiter im Urlaub, geht das Ticket an seine Vertretung. „Reihum“ überspringt Mitarbeiter im Urlaub, offline oder außerhalb ihrer Schicht.

+ > Automatische Zeiterfassung (misst automatisch, wie lange ein Mitarbeiter ein Ticket geöffnet hat) +