From 49fcd52a49e8657a9495374ecce0c3023a51e48e Mon Sep 17 00:00:00 2001 From: tremo Date: Mon, 22 Jun 2026 12:15:15 +0200 Subject: [PATCH] fix(container.class.php): fix the name of dropdown fields in log --- CHANGELOG.md | 1 + inc/container.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6076b750..edb82005 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fix the name of dropdown fields in logs when updating an item - Fix plugin configuration deletion during uninstallation - Fix nested array stored in DB for readonly dropdown - Fix migration abort when a GenericObject container name produces a table name exceeding MySQL's 64-character limit after conversion to GlpiCustomAsset. diff --git a/inc/container.class.php b/inc/container.class.php index f9cd4770..50e5e1b0 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -1594,7 +1594,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') {