diff --git a/CHANGELOG.md b/CHANGELOG.md index c25452a5..f3456104 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] + +### Fixed + +- Fixed a bug that prevented the creation of additional field data for objects + ## [1.23.0] - 2025-11-05 ### Added diff --git a/inc/abstractcontainerinstance.class.php b/inc/abstractcontainerinstance.class.php index 3a6a875d..c538b373 100644 --- a/inc/abstractcontainerinstance.class.php +++ b/inc/abstractcontainerinstance.class.php @@ -33,8 +33,6 @@ abstract class PluginFieldsAbstractContainerInstance extends CommonDBChild public static $itemtype = 'itemtype'; public static $items_id = 'items_id'; - public static $mustBeAttached = false; - /** * This function relies on the static property `static::$plugins_forward_entity`, * which should be populated using the following method (from setup): diff --git a/inc/container.class.php b/inc/container.class.php index b457c792..9d9c445f 100644 --- a/inc/container.class.php +++ b/inc/container.class.php @@ -1745,6 +1745,7 @@ public static function postItemAdd(CommonDBTM $item) { if (array_key_exists('_plugin_fields_data', $item->input)) { $data = $item->input['_plugin_fields_data']; + $data['itemtype'] = $item::class; $data['items_id'] = $item->getID(); $data['entities_id'] = $item->isEntityAssign() ? $item->getEntityID() : 0; //update data