diff --git a/include/class.thread.php b/include/class.thread.php index 8bb321eedea75d38d3a855e0de3d520df471d480..d58e623fd079f08949cdeb23db239090609b4fb0 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(),