File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
88## [ UNRELEASE]
99
10+ ### Fixed
11+
12+ - Fix of GLPI native fields update for objects with ` fields ` containers.
13+
1014## [ 1.21.20] - 2025-03-20
1115
1216### Fixed
Original file line number Diff line number Diff line change @@ -1716,9 +1716,7 @@ public static function preItem(CommonDBTM $item)
17161716 $ entities = getSonsOf (getTableForItemType ('Entity ' ), $ loc_c ->fields ['entities_id ' ]);
17171717 }
17181718
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 )) {
1719+ if (count ($ item ->fields ) === 0 ) {
17221720 $ item ->fields = $ item ->input ;
17231721 }
17241722
You can’t perform that action at this time.
0 commit comments