From 0a01194cdeb20f6d183e708e56d44c8d6910d921 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Tue, 21 Jan 2025 11:30:57 +0100 Subject: [PATCH 1/2] fix(Container): retrive container id from input --- inc/container.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/container.class.php b/inc/container.class.php index 2d40838c..9c0e67f5 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -1666,6 +1666,8 @@ public static function preItem(CommonDBTM $item) //find container (if not exist, do nothing) if (isset($_REQUEST['c_id'])) { $c_id = $_REQUEST['c_id']; + } elseif (isset($item->input['c_id'])) { + $c_id = $item->input['c_id']; } else { $type = 'dom'; if (isset($_REQUEST['_plugin_fields_type'])) { From 427e21f75e6c599f3428f5312b969ce1c26084e2 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Tue, 21 Jan 2025 11:32:43 +0100 Subject: [PATCH 2/2] adapt changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d92fc74..15fab703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELAESE] +- Fix container update from `API` + ## [1.21.18] - 2024-01-16 - Fix `PluginFieldsContainerDisplayCondition` display when value is no more available.