Skip to content

Commit 3a78be8

Browse files
authored
Fix api container tab update (#910)
* fix(Container): retrive container id from input * adapt changelog
1 parent 33183be commit 3a78be8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [UNRELAESE]
99

10+
- Fix container update from `API`
11+
1012
## [1.21.18] - 2024-01-16
1113

1214
- Fix `PluginFieldsContainerDisplayCondition` display when value is no more available.

inc/container.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,8 @@ public static function preItem(CommonDBTM $item)
16661666
//find container (if not exist, do nothing)
16671667
if (isset($_REQUEST['c_id'])) {
16681668
$c_id = $_REQUEST['c_id'];
1669+
} elseif (isset($item->input['c_id'])) {
1670+
$c_id = $item->input['c_id'];
16691671
} else {
16701672
$type = 'dom';
16711673
if (isset($_REQUEST['_plugin_fields_type'])) {

0 commit comments

Comments
 (0)