From 8a00b495629c9ace8cd55dafb1ee5490b5859c4e Mon Sep 17 00:00:00 2001 From: Julien DURAND Date: Tue, 10 Nov 2026 09:03:20 +0100 Subject: [PATCH 1/2] BACKPORT-CONFLICT --- CHANGELOG.md | 5 +++++ tests/unit/NetworkPortInjectionTest.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 745effba..67f588ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix models mapped to additional fields (Fields plugin) becoming inaccessible and their values being rejected on injection - Fix entity injection failing when additional fields (Fields plugin) are mapped - CI: use the GLPI shared php-cs-fixer configuration and apply its coding style +- Fix the uploaded file name being lost after the client injection upload step +- Fix additional information sharing a field name across itemtypes (e.g. two device designations) overwriting each other, and show the itemtype next to each field +- Stop flagging a network port injection as partial when no connection to a network equipment port is requested +- Made several generic warnings more explicit. They explain why the mapping failed. +- Stop requesting a network port connection when its connection columns are empty ## [2.16.0] - 2026-10-05 diff --git a/tests/unit/NetworkPortInjectionTest.php b/tests/unit/NetworkPortInjectionTest.php index 75f31add..02b8a212 100644 --- a/tests/unit/NetworkPortInjectionTest.php +++ b/tests/unit/NetworkPortInjectionTest.php @@ -52,7 +52,7 @@ private function injectComputerWithPort(array $port, ?string $computer_name = nu $lib = new PluginDatainjectionCommonInjectionLib( new PluginDatainjectionComputerInjection(), [ - 'Computer' => ['name' => $computer_name, 'entities_id' => $entities_id], + 'Computer' => ['name' => $computer_name], 'NetworkPort' => $port, ], [ From 6cfe62ed19a60e1fef876e8776b8f99cba8b9c9f Mon Sep 17 00:00:00 2001 From: Julien Durand <300495670+jdurand-teclib@users.noreply.github.com> Date: Wed, 2 Dec 2026 12:01:03 +0100 Subject: [PATCH 2/2] fix: Unit tests --- tests/unit/NetworkPortInjectionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/NetworkPortInjectionTest.php b/tests/unit/NetworkPortInjectionTest.php index 02b8a212..75f31add 100644 --- a/tests/unit/NetworkPortInjectionTest.php +++ b/tests/unit/NetworkPortInjectionTest.php @@ -52,7 +52,7 @@ private function injectComputerWithPort(array $port, ?string $computer_name = nu $lib = new PluginDatainjectionCommonInjectionLib( new PluginDatainjectionComputerInjection(), [ - 'Computer' => ['name' => $computer_name], + 'Computer' => ['name' => $computer_name, 'entities_id' => $entities_id], 'NetworkPort' => $port, ], [