diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ab8944c1..dd25984e3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,7 @@ on: env: GLPI_SOURCE: "https://github.com/glpi-project/glpi" - GLPI_PACKAGE_URL_BASE: "https://nightly.glpi-project.org/glpi" + GLPI_PACKAGE_URL_BASE: "https://github.com/glpi-project/glpi-project.github.io/raw/refs/heads/main/glpi" CS: 7.4 DB_HOST: 127.0.0.1 MYSQL_ROOT_USER: root diff --git a/inc/targetticket.class.php b/inc/targetticket.class.php index 1c9269b6c..c3f433ca1 100644 --- a/inc/targetticket.class.php +++ b/inc/targetticket.class.php @@ -1180,7 +1180,7 @@ protected function showAssociateSettings($rand) { $rows = $itemTargetTicket->find([ self::getForeignKeyField() => $this->getID(), [ - 'NOT' => ['itemtype' => [PluginFormcreatorTargetTicket::class, Ticket::class]], + 'NOT' => ['itemtype' => [PluginFormcreatorTargetTicket::class, PluginFormcreatorQuestion::class, Ticket::class]], ], ]); foreach ($rows as $row) { @@ -1251,7 +1251,7 @@ protected function setTargetAssociatedItem(array $data, PluginFormcreatorFormAns $rows = $itemTargetTicket->find([ self::getForeignKeyField() => $this->getID(), [ - 'NOT' => ['itemtype' => [PluginFormcreatorTargetTicket::class, Ticket::class]], + 'NOT' => ['itemtype' => [PluginFormcreatorTargetTicket::class, PluginFormcreatorQuestion::class, Ticket::class]], ], ]); $data['items_id'] = []; @@ -1551,6 +1551,7 @@ private function saveAssociatedItems($input) { $itemTargetTicket->deleteByCriteria([ 'NOT' => ['itemtype' => [ PluginFormcreatorTargetTicket::class, + PluginFormcreatorQuestion::class, Ticket::class, ]], self::getForeignKeyField() => $this->getID(),