We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 807cad2 commit c85c4feCopy full SHA for c85c4fe
2 files changed
CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
8
## [UNRELEASE]
9
10
+### Fixed
11
+
12
+- Fix of GLPI native fields update for objects with `fields` containers.
13
14
## [1.21.20] - 2025-03-20
15
16
### Fixed
inc/container.class.php
@@ -1716,9 +1716,7 @@ public static function preItem(CommonDBTM $item)
1716
$entities = getSonsOf(getTableForItemType('Entity'), $loc_c->fields['entities_id']);
1717
}
1718
1719
- //workaround: when a ticket is created from readdonly profile,
1720
- //it is not initialized; see https://github.com/glpi-project/glpi/issues/1438
1721
- if (!empty($item->fields)) {
+ if (count($item->fields) === 0) {
1722
$item->fields = $item->input;
1723
1724
0 commit comments