We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
add
1 parent 38ce739 commit f4b1f9aCopy full SHA for f4b1f9a
2 files changed
CHANGELOG.md
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
8
## [Unreleased]
9
10
+- Fix `add` operations when a linked object already exists before the plugin container fields are created.
11
+
12
### Fixed
13
14
- Fix left side menu url (with `DIR_MARKETPLACE`)
inc/container.class.php
@@ -1780,6 +1780,7 @@ public static function preItemUpdate(CommonDBTM $item)
1780
self::preItem($item);
1781
if (array_key_exists('_plugin_fields_data', $item->input)) {
1782
$data = $item->input['_plugin_fields_data'];
1783
+ $data['itemtype'] = $item::class;
1784
$data['entities_id'] = $item->isEntityAssign() ? $item->getEntityID() : 0;
1785
//update data
1786
$container = new self();
0 commit comments