From b15ed51a806e63a8ef7a3a0c88df3ae36a293943 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Mon, 11 Jul 2016 19:39:45 +0000 Subject: [PATCH] dept_access: Only show access entries with dept --- include/staff/staff.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/staff/staff.inc.php b/include/staff/staff.inc.php index c063948b7..3a3a27f72 100644 --- a/include/staff/staff.inc.php +++ b/include/staff/staff.inc.php @@ -518,6 +518,7 @@ $('#join_team').find('button').on('click', function() { <?php foreach ($staff->dept_access as $dept_access) { + if (!$dept_access->dept_id) continue; echo sprintf('addAccess(%d, %s, %d, %d, %s);', $dept_access->dept_id, JsonDataEncoder::encode($dept_access->dept->getName()), $dept_access->role_id, -- GitLab