Skip to content

Commit

Permalink
fix(issue): syncissues drops most requesters
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 23, 2020
1 parent e013475 commit c68628c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,10 @@ public static function cronSyncIssues(CronTask $task) {
ON `itic`.`tickets_id` = `tic`.`id`
AND `itic`.`itemtype` = 'PluginFormcreatorFormAnswer'
LEFT JOIN (
SELECT `users_id`, `tickets_id`
SELECT DISTINCT `users_id`, `tickets_id`
FROM `glpi_tickets_users` AS `tu`
WHERE `tu`.`type` = '" . CommonITILActor::REQUESTER . "'
ORDER BY `id` ASC
LIMIT 1
) AS `tu` ON (`tic`.`id` = `tu`.`tickets_id`)
LEFT JOIN `glpi_ticketvalidations` as `tv`
ON (`tic`.`id` = `tv`.`tickets_id`)
Expand Down

0 comments on commit c68628c

Please sign in to comment.