From 928445546dc136e1796c18568f5ec67ff6cbd87f Mon Sep 17 00:00:00 2001 From: aydreeihn <adriane@enhancesoft.com> Date: Mon, 6 Aug 2018 15:37:16 -0500 Subject: [PATCH] Team Referral Check This commit adds an additional check for Team referrals in the isReferred method so that it is handled in the same way Staff and Departments are handled. --- include/class.thread.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/class.thread.php b/include/class.thread.php index 8bb321eed..d58e623fd 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -301,6 +301,11 @@ implements Searchable { return false; break; + case $to instanceof Team: + //Referred to a Team + return ($this->getReferral($to->getId(), + ObjectModel::OBJECT_TYPE_TEAM)); + break; case $to instanceof Dept: // Refered to the dept return ($this->getReferral($to->getId(), -- GitLab