Skip to content

Commit

Permalink
dept: Fix ::getMembersForAlerts() for primary depts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Hancock committed Aug 18, 2015
1 parent ab74bd7 commit abc93ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/class.staff.php
Expand Up @@ -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'),
Expand Down

0 comments on commit abc93ef

Please sign in to comment.