Ok, I found it in class.forms.php
it starts at line 3380 here is the code as it was changed
foreach ($dept->getAssignees(array('staff' => $staff, 'available' => true)) as $a)
foreach (Staff::getStaffMembers(array('staff' => $staff, 'available' => true)) as $id => $name)