Skip to content

Commit 731e910

Browse files
authored
Fix(fields): rely on input first (#920)
* Fix(fields): rely on input first * adpat changelog
1 parent ec7ebfd commit 731e910

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

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

88
## [UNRELEASE]
99

10+
### Fixed
11+
12+
- Fix container update from other context (like plugins)
1013

1114
## [1.21.19] - 2025-02-03
1215

16+
### Fixed
17+
1318
- Fix container update from `API`
1419
- Fix: fix default value for `dropdown` field to avoid empty dropdown
1520

1621
## [1.21.18] - 2024-01-16
1722

23+
### Fixed
24+
1825
- Fix `PluginFieldsContainerDisplayCondition` display when value is no more available.
1926
- Fix issue where the value of custom fields could not be saved
2027

inc/container.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,10 +1667,10 @@ public static function preItemUpdate(CommonDBTM $item)
16671667
public static function preItem(CommonDBTM $item)
16681668
{
16691669
//find container (if not exist, do nothing)
1670-
if (isset($_REQUEST['c_id'])) {
1671-
$c_id = $_REQUEST['c_id'];
1672-
} elseif (isset($item->input['c_id'])) {
1670+
if (isset($item->input['c_id'])) {
16731671
$c_id = $item->input['c_id'];
1672+
} elseif (isset($_REQUEST['c_id'])) {
1673+
$c_id = $_REQUEST['c_id'];
16741674
} else {
16751675
$type = 'dom';
16761676
if (isset($_REQUEST['_plugin_fields_type'])) {

0 commit comments

Comments
 (0)