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 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') {