From 5ed497f67a7a5249763b3f99ede78b54d239a2d6 Mon Sep 17 00:00:00 2001 From: Lainow Date: Thu, 8 Jan 2026 16:57:38 +0100 Subject: [PATCH 1/2] 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/2] 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