From 390a21de5b5b8ba28463e3f4b64ccc36e58bbd53 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 6 Aug 2015 11:10:50 -0500 Subject: [PATCH] Fix crash sending emails to department members --- include/class.dept.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.dept.php b/include/class.dept.php index 9979d2d0c..bcdfecf07 100644 --- a/include/class.dept.php +++ b/include/class.dept.php @@ -215,7 +215,7 @@ implements TemplateVariable { 'dept_id' => $this->getId(), // NOTE: Manager is excluded here if not a member Q::all(array( - 'group_membership' => self::ALERTS_DEPT_AND_EXTENDED, + 'dept_access__dept__group_membership' => self::ALERTS_DEPT_AND_EXTENDED, 'dept_access__flags__hasbit' => StaffDeptAccess::FLAG_ALERTS, )), ))); -- GitLab