Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [UNRELEASE]

### Fixed

- Fix container update from other context (like plugins)

## [1.21.19] - 2025-02-03

### Fixed

- Fix container update from `API`
- Fix: fix default value for `dropdown` field to avoid empty dropdown

## [1.21.18] - 2024-01-16

### Fixed

- Fix `PluginFieldsContainerDisplayCondition` display when value is no more available.
- Fix issue where the value of custom fields could not be saved

Expand Down
6 changes: 3 additions & 3 deletions inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1664,10 +1664,10 @@ public static function preItemUpdate(CommonDBTM $item)
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'])) {
if (isset($item->input['c_id'])) {
$c_id = $item->input['c_id'];
} elseif (isset($_REQUEST['c_id'])) {
$c_id = $_REQUEST['c_id'];
} else {
$type = 'dom';
if (isset($_REQUEST['_plugin_fields_type'])) {
Expand Down