From 5ed497f67a7a5249763b3f99ede78b54d239a2d6 Mon Sep 17 00:00:00 2001 From: Lainow Date: Thu, 8 Jan 2026 16:57:38 +0100 Subject: [PATCH 1/3] Fix log for dropdown fields --- inc/container.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/container.class.php b/inc/container.class.php index 732b3dbb..5460c97b 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -1405,7 +1405,7 @@ public static function constructHistory( //for all change find searchoption foreach ($updates as $key => $changes) { foreach ($searchoptions as $id_search_option => $searchoption) { - if ($searchoption['field'] == $key) { + if ($searchoption['field'] == $key || $searchoption['linkfield'] == $key) { $changes[0] = $id_search_option; if ($searchoption['datatype'] === 'dropdown') { From f3b554b4e244aa788de1bc8f710029e8f7534299 Mon Sep 17 00:00:00 2001 From: Lainow Date: Thu, 8 Jan 2026 17:01:44 +0100 Subject: [PATCH 2/3] Update Changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3be442ca..cbf3db8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASED] +### Fixed + +- Fix the value of `id_search_option` in the log table when updating a dropdown field + ## [1.21.25] - 2025-11-20 ### Fixed From 0ece1dfdacc01ef861d75329f89f8ada00306dbc Mon Sep 17 00:00:00 2001 From: Lainow Date: Mon, 12 Jan 2026 09:58:04 +0100 Subject: [PATCH 3/3] Fix dependencies --- composer.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/composer.json b/composer.json index 7c79a173..8b96e7d7 100644 --- a/composer.json +++ b/composer.json @@ -4,13 +4,7 @@ "symfony/yaml": "^5.4" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.86", - "friendsoftwig/twigcs": "^6.1", "glpi-project/tools": "^0.8.0", - "php-parallel-lint/php-parallel-lint": "^1.4", - "phpstan/extension-installer": "^1.4", - "phpstan/phpstan": "^2.1", - "phpstan/phpstan-deprecation-rules": "^2.0" }, "config": { "optimize-autoloader": true,