-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Version
11.0.1
Bug description
We have an error when we add a follow to a ticket with more than one technician
Relevant log output
Ticket_User::getFromDBByCrit() expects to get one result, 2 found in query "SELECT id FROM glpi_tickets_users WHERE tickets_id = '18185' AND type = '2'".
In ./src/CommonDBTM.php(431)
#0 ./marketplace/behaviors/src/ITILFollowup.php(54): CommonDBTM->getFromDBByCrit()
#1 ./src/Plugin.php(1719): GlpiPlugin\Behaviors\ITILFollowup::beforeAdd()
#2 ./src/CommonDBTM.php(1334): Plugin::doHook()
#3 ./front/itilfollowup.form.php(58): CommonDBTM->add()
#4 ./src/Glpi/Controller/LegacyFileLoadController.php(64): require('...')
#5 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\LegacyFileLoadController->__invoke()
#6 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#7 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()
#8 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle()
#9 {main}
Page URL
https://xxxx/front/itilfollowup.form.php
Steps To reproduce
add a second technician on attribued to on a ticket and save
add a follow up to the ticket