diff --git a/inc/issue.class.php b/inc/issue.class.php index 7501669ac..e2ba50f33 100644 --- a/inc/issue.class.php +++ b/inc/issue.class.php @@ -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`)