Skip to content

Commit

Permalink
fix sql for timeline - fixed #917
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Sep 2, 2016
1 parent 94e3b99 commit 93912a4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6572,14 +6572,6 @@ function getTicketActors() {
LEFT JOIN `glpi_groups_users` gu ON gu.`groups_id` = gt.`groups_id`
LEFT JOIN `glpi_users` usr ON gu.`users_id` = usr.`id`
WHERE gt.`tickets_id` = ".$this->getId()."
UNION
SELECT usr.`id` AS users_id, '2' AS type
FROM `glpi_profiles` prof
LEFT JOIN `glpi_profiles_users` pu ON pu.`profiles_id` = prof.`id`
LEFT JOIN `glpi_users` usr ON usr.`id` = pu.`users_id`
LEFT JOIN `glpi_profilerights` pr ON pr.`profiles_id` = prof.`id`
WHERE pr.`name` = 'ticket'
AND pr.`rights` & ".Ticket::OWN." = ".Ticket::OWN."
) AS allactors
WHERE `type` != ".CommonItilActor::OBSERVER."
GROUP BY `users_id`
Expand Down

0 comments on commit 93912a4

Please sign in to comment.