From abc93efdd5f33f7d69a3e0e13dd67a02fcc2dbac Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 10 Aug 2015 16:55:32 -0500 Subject: [PATCH] dept: Fix ::getMembersForAlerts() for primary depts --- include/class.staff.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/class.staff.php b/include/class.staff.php index a3b214593..539160259 100644 --- a/include/class.staff.php +++ b/include/class.staff.php @@ -1082,6 +1082,10 @@ class StaffDeptAccess extends VerySimpleModel { 'joins' => array( 'dept' => array( 'constraint' => array('dept_id' => 'Dept.id'), + // FIXME: The ORM needs a way to support + // staff__dept_access__dept performing a LEFT join b/c + // staff__dept_access is LEFT + 'null' => true, ), 'staff' => array( 'constraint' => array('staff_id' => 'Staff.staff_id'), -- GitLab