Skip to content

Commit f4b1f9a

Browse files
authored
Fix(Core): Fix add operations when a linked object already exists before the plugin container fields are created. (#1092)
1 parent 38ce739 commit f4b1f9a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Fix `add` operations when a linked object already exists before the plugin container fields are created.
11+
1012
### Fixed
1113

1214
- Fix left side menu url (with `DIR_MARKETPLACE`)

inc/container.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,7 @@ public static function preItemUpdate(CommonDBTM $item)
17801780
self::preItem($item);
17811781
if (array_key_exists('_plugin_fields_data', $item->input)) {
17821782
$data = $item->input['_plugin_fields_data'];
1783+
$data['itemtype'] = $item::class;
17831784
$data['entities_id'] = $item->isEntityAssign() ? $item->getEntityID() : 0;
17841785
//update data
17851786
$container = new self();

0 commit comments

Comments
 (0)