From ddb5a07006220896a5f8e1d79fbd1f3f4e11ec50 Mon Sep 17 00:00:00 2001 From: aydreeihn <adriane@enhancesoft.com> Date: Mon, 24 Sep 2018 16:24:51 -0500 Subject: [PATCH] View All Tickets for User When clicking 'All Tickets' for a User from within a Ticket, make sure we search using the User's email address instead of their Full Name in case we have users with the same name. --- scp/tickets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp/tickets.php b/scp/tickets.php index 4851b4169..05c0a0e4b 100644 --- a/scp/tickets.php +++ b/scp/tickets.php @@ -53,7 +53,7 @@ if (!$ticket) { && $_GET['a'] !== 'open' ) { $criteria = [ - ['user__name', 'equal', $user->name], + ['user__emails__address', 'equal', $user->getDefaultEmailAddress()], ['user_id', 'equal', $user->id], ]; if ($S = $_GET['status']) -- GitLab