diff --git a/include/staff/tasks.inc.php b/include/staff/tasks.inc.php index 712a795af5d7ea2da6093b89c5c79f17ecb9eddf..a83f1caced87997e9f5547185a2517afb73052e1 100644 --- a/include/staff/tasks.inc.php +++ b/include/staff/tasks.inc.php @@ -130,6 +130,11 @@ if ($filters) $visibility = Q::any( new Q(array('flags__hasbit' => TaskModel::ISOPEN, 'staff_id' => $thisstaff->getId())) ); +// -- Task for tickets assigned to me +$visibility->add(new Q( array( + 'ticket__staff_id' => $thisstaff->getId(), + 'ticket__status__state' => 'open')) + ); // -- Routed to a department of mine if (!$thisstaff->showAssignedOnly() && ($depts=$thisstaff->getDepts())) $visibility->add(new Q(array('dept_id__in' => $depts)));