Skip to content

Commit 1fa10c8

Browse files
committed
fix(issue): syncissues drops most requesters
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 2eabddf commit 1fa10c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inc/issue.class.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ public static function cronSyncIssues(CronTask $task) {
117117
ON `itic`.`tickets_id` = `tic`.`id`
118118
AND `itic`.`itemtype` = 'PluginFormcreatorFormAnswer'
119119
LEFT JOIN (
120-
SELECT `users_id`, `tickets_id`
120+
SELECT DISTINCT `users_id`, `tickets_id`
121121
FROM `glpi_tickets_users` AS `tu`
122122
WHERE `tu`.`type` = '" . CommonITILActor::REQUESTER . "'
123123
ORDER BY `id` ASC
124-
LIMIT 1
125124
) AS `tu` ON (`tic`.`id` = `tu`.`tickets_id`)
126125
LEFT JOIN `glpi_ticketvalidations` as `tv`
127126
ON (`tic`.`id` = `tv`.`tickets_id`)

0 commit comments

Comments
 (0)