Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions inc/abstractcontainerinstance.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down