diff --git a/CHANGELOG.md b/CHANGELOG.md index 95368426..1817e52a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix responsible group injection payload normalization so group remains visible in GLPI after import - Fix incorrect escaping of apostrophes and accents - Fix plugin rights initialization and cleanup - +- Preserve `entities_id` ## [2.15.4] - 2026-03-16 diff --git a/inc/commoninjectionlib.class.php b/inc/commoninjectionlib.class.php index 991effa6..cfb1afef 100644 --- a/inc/commoninjectionlib.class.php +++ b/inc/commoninjectionlib.class.php @@ -1716,6 +1716,10 @@ private function effectiveAddOrUpdate($injectionClass, $item, $values, $add = tr if (!$add && $key === 'id') { $toinject[$key] = $value; } + + if ($key === 'entities_id') { + $toinject[$key] = $value; + } } $newID = null;