Fix assigned_to=me filter not working from command palette
The command palette 'My Open Tickets' action navigates to ?assigned_to=me, but DashboardController only handled numeric IDs and 'unassigned', silently ignoring 'me'. Resolve 'me' to the current user's ID. Also update the active filter chip to display 'Me' instead of 'User #me'. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@ if (!empty($_GET['type'])) {
|
||||
$activeFilters[] = ['type' => 'type', 'value' => $_GET['type'], 'label' => 'Type: ' . htmlspecialchars($_GET['type'])];
|
||||
}
|
||||
if (!empty($_GET['assigned_to'])) {
|
||||
$label = $_GET['assigned_to'] === 'unassigned' ? 'Unassigned' : 'User #' . htmlspecialchars($_GET['assigned_to']);
|
||||
$label = match($_GET['assigned_to']) { 'unassigned' => 'Unassigned', 'me' => 'Me', default => 'User #' . htmlspecialchars($_GET['assigned_to']) };
|
||||
$activeFilters[] = ['type' => 'assigned_to', 'value' => $_GET['assigned_to'], 'label' => 'Assigned: ' . $label];
|
||||
}
|
||||
if (!empty($_GET['created_from']) || !empty($_GET['created_to'])) {
|
||||
|
||||
Reference in New Issue
Block a user