From efdbdb393bba0207183071dd147cc47337ab98e0 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Wed, 13 Jul 2016 14:16:33 +0000
Subject: [PATCH] oops: Regression bug

Fix bug brought about by commit #72e9abcf
---
 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 ef6c28d87..1f14bcb15 100644
--- a/include/class.dept.php
+++ b/include/class.dept.php
@@ -320,7 +320,7 @@ implements TemplateVariable {
         if (is_object($staff))
             $staff = $staff->getId();
 
-        return $members->getIterator()->findFirst(array(
+        return $this->getMembers()->findFirst(array(
             'staff_id' => $staff
         ));
     }
-- 
GitLab