From d4262cef08f39ae94c891860c2021e09c5651895 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Thu, 7 Jun 2018 14:50:09 -0500 Subject: [PATCH] issue: Auto-Assignment Log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This addresses an issue on the Forums where the Auto-Assignment Thread Event (configurable via Help Topic) uses the Email of the User rather than the User’s Name. This adds the correct function to retrieve the User’s Name if the User has an Account. --- include/class.thread.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.thread.php b/include/class.thread.php index 3911f714b..027f3b5cc 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -1791,8 +1791,8 @@ class ThreadEvents extends InstrumentedList { } // XXX: Use $user here elseif ($thisclient) { - if ($thisclient->hasAccount) - $username = $thisclient->getAccount()->getUserName(); + if ($thisclient->hasAccount()) + $username = $thisclient->getFullName(); if (!$username) $username = $thisclient->getEmail(); } -- GitLab